MQTT 3.1 and 5 in OCaml using Eio
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

nox-xdge

+8 -8
+1 -1
dune-project
··· 22 22 nox-ca-certs 23 23 (cmdliner (>= 1.2)) 24 24 nox-tls 25 - xdge 25 + nox-xdge 26 26 tomlt 27 27 (logs (>= 0.7)) 28 28 (fmt (>= 0.9))
+1 -1
lib/cmd/dune
··· 4 4 (libraries 5 5 mqtte 6 6 mqtte_eio 7 - xdge 7 + nox-xdge 8 8 tomlt 9 9 tomlt.eio 10 10 eio
+5 -5
lib/cmd/mqtte_cmd.ml
··· 139 139 None 140 140 141 141 let load xdg = 142 - match Xdge.find_config_file xdg "config.toml" with 142 + match Xdge.config_file xdg "config.toml" with 143 143 | Some path -> load_from_path path 144 144 | None -> 145 145 Log.debug (fun m -> m "No config.toml found in XDG config directories"); ··· 344 344 345 345 let term ~app_name ~fs () = 346 346 (* Create XDG context to read config file defaults at term construction time. *) 347 - let xdg = Xdge.create fs app_name in 347 + let xdg = Xdge.v fs app_name in 348 348 let file_config = 349 349 match Config_file.load xdg with Some c -> c | None -> Config_file.empty 350 350 in ··· 374 374 375 375 (** {1 XDG Access} *) 376 376 377 - let xdg ~app_name ~fs = Xdge.create fs app_name 377 + let xdg ~app_name ~fs = Xdge.v fs app_name 378 378 379 379 (** {1 Documentation Helpers} *) 380 380 ··· 497 497 498 498 let init_config_term ~app_name ~fs = 499 499 let run force = 500 - let xdg = Xdge.create fs app_name in 500 + let xdg = Xdge.v fs app_name in 501 501 let path = config_path xdg in 502 502 let exists = Eio.Path.is_file path in 503 503 if exists && not force then begin ··· 543 543 544 544 let show_config_term ~app_name ~fs = 545 545 let run () = 546 - let xdg = Xdge.create fs app_name in 546 + let xdg = Xdge.v fs app_name in 547 547 let path = config_path xdg in 548 548 Fmt.pr "Configuration file: %s@.@." (Eio.Path.native_exn path); 549 549 if Eio.Path.is_file path then begin
+1 -1
mqtte.opam
··· 18 18 "nox-ca-certs" 19 19 "cmdliner" {>= "1.2"} 20 20 "nox-tls" 21 - "xdge" 21 + "nox-xdge" 22 22 "tomlt" 23 23 "logs" {>= "0.7"} 24 24 "fmt" {>= "0.9"}