···58585959 let empty = { mqtt = empty_mqtt_config; pool = empty_pool_config }
60606161- let mqtt_codec : mqtt_config Tomlt.t =
6262- Tomlt.(
6161+ let mqtt_codec : mqtt_config Toml.Codec.t =
6262+ Toml.Codec.(
6363 Table.(
6464 obj
6565 (fun
···9898 |> opt_mem "protocol_version" string ~enc:(fun c -> c.protocol_version)
9999 |> finish))
100100101101- let pool_codec : pool_config Tomlt.t =
102102- Tomlt.(
101101+ let pool_codec : pool_config Toml.Codec.t =
102102+ Toml.Codec.(
103103 Table.(
104104 obj (fun min_connections max_connections idle_timeout ->
105105 { min_connections; max_connections; idle_timeout })
···108108 |> opt_mem "idle_timeout" float ~enc:(fun c -> c.idle_timeout)
109109 |> finish))
110110111111- let codec : t Tomlt.t =
112112- Tomlt.(
111111+ let codec : t Toml.Codec.t =
112112+ Toml.Codec.(
113113 Table.(
114114 obj (fun mqtt pool ->
115115 {
···124124125125 let load_from_path path =
126126 try
127127- let config = Tomlt_eio.decode_path_exn codec ~fs:path "" in
127127+ let config = Toml_eio.decode_path_exn codec ~fs:path "" in
128128 Log.debug (fun m -> m "Loaded config from %s" (Eio.Path.native_exn path));
129129 Some config
130130 with
+8-8
lib/cmd/mqtte_cmd.mli
···152152 val empty_mqtt_config : mqtt_config
153153 (** Empty MQTT config with all fields set to [None]. *)
154154155155- val mqtt_codec : mqtt_config Tomlt.t
156156- (** Tomlt codec for the [[mqtt]] section. Use this to compose with your
155155+ val mqtt_codec : mqtt_config Toml.Codec.t
156156+ (** TOML codec for the [[mqtt]] section. Use this to compose with your
157157 application's config codec. *)
158158159159 (** {2 Pool Configuration} *)
···168168 val empty_pool_config : pool_config
169169 (** Empty pool config with all fields set to [None]. *)
170170171171- val pool_codec : pool_config Tomlt.t
172172- (** Tomlt codec for the [[pool]] section. *)
171171+ val pool_codec : pool_config Toml.Codec.t
172172+ (** TOML codec for the [[pool]] section. *)
173173174174 (** {2 Combined Configuration} *)
175175···179179 val empty : t
180180 (** Empty configuration. *)
181181182182- val codec : t Tomlt.t
183183- (** Tomlt codec for the full config file (both [[mqtt]] and [[pool]]
182182+ val codec : t Toml.Codec.t
183183+ (** TOML codec for the full config file (both [[mqtt]] and [[pool]]
184184 sections). Use this when loading a standalone config.toml, or use
185185 {!mqtt_codec} and {!pool_codec} separately to compose with
186186 application-specific sections. *)
···213213 pool : Mqtte_cmd.Config_file.pool_config;
214214 }
215215216216- let codec = Tomlt.Table.(
216216+ let codec = Toml.Codec.Table.(
217217 obj (fun app_setting mqtt pool -> { app_setting; mqtt; pool })
218218- |> mem "app_setting" Tomlt.string ~enc:(fun c -> c.app_setting)
218218+ |> mem "app_setting" Toml.Codec.string ~enc:(fun c -> c.app_setting)
219219 |> opt_mem "mqtt" Mqtte_cmd.Config_file.mqtt_codec
220220 ~enc:(fun c -> Some c.mqtt)
221221 |> opt_mem "pool" Mqtte_cmd.Config_file.pool_codec