Commit ab3bd9d6 authored by Ian Jackson's avatar Ian Jackson
Browse files

arti-config: Move cmdline to tor-config

This does not know anything about arti, only about TOML and Config.

Code motion, plus necessary import adjustments.
parent b137be22
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3428,6 +3428,7 @@ dependencies = [
 "educe",
 "once_cell",
 "paste",
 "regex",
 "rmp-serde",
 "serde",
 "serde_json",
+1 −2
Original line number Diff line number Diff line
@@ -47,11 +47,10 @@
#![warn(clippy::unseparated_literal_suffix)]
#![deny(clippy::unwrap_used)]

mod cmdline;
mod options;

pub use cmdline::CmdLine;
pub use options::ARTI_DEFAULTS;
use tor_config::CmdLine;

/// The synchronous configuration builder type we use.
///
+3 −0
Original line number Diff line number Diff line
@@ -20,12 +20,15 @@ tor-error = { path = "../tor-error", version = "0.3.0"}
tor-basic-utils = { path="../tor-basic-utils", version = "0.3.0"}

thiserror = "1"
config = { version = "0.13", default-features = false, features = ["toml"] }
derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti" }
educe = "0.4.6"
once_cell = "1"
paste = "1"
regex = { version = "1", default-features = false, features = ["std"] }
serde = { version = "1.0.103", features = ["derive"] }
shellexpand = { version = "2.1", package = "shellexpand-fork", optional = true }
toml = "0.5"
tracing = "0.1.18"
directories = { version = "4", optional = true }

+2 −0
Original line number Diff line number Diff line
@@ -46,11 +46,13 @@
#![warn(clippy::unseparated_literal_suffix)]
#![deny(clippy::unwrap_used)]

pub mod cmdline;
mod err;
pub mod list_builder;
mod mut_cfg;
mod path;

pub use cmdline::CmdLine;
pub use educe;
pub use err::{ConfigBuildError, ReconfigureError};
pub use mut_cfg::MutCfg;