diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5bc2ded42..34286c36a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,10 +42,14 @@ rust-latest: - cp cargo-audit $CARGO_HOME/bin/ || cargo install cargo-audit - ./maint/cargo_audit - cp $CARGO_HOME/bin/cargo-audit . + - cp cargo-sort $CARGO_HOME/bin/ || cargo install cargo-sort + - ./maint/cargo_sort + - cp $CARGO_HOME/bin/cargo-sort . - cargo build --verbose --release -p arti-bench --target x86_64-unknown-linux-gnu cache: paths: - cargo-audit + - cargo-sort artifacts: paths: - target/x86_64-unknown-linux-gnu/debug/arti diff --git a/Cargo.toml b/Cargo.toml index 351091b6f..ff9365c6f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,41 +6,41 @@ # Please keep this list topologically sorted by dependency relation, so # that every crate appears _before_ any other crate that depends on it. members = [ - "crates/tor-basic-utils", - "crates/caret", - "crates/fs-mistrust", - "crates/safelog", - "crates/retry-error", - "crates/tor-error", - "crates/tor-config", - "crates/tor-events", - "crates/tor-units", - "crates/tor-rtcompat", - "crates/tor-rtmock", - "crates/tor-llcrypto", - "crates/tor-protover", - "crates/tor-bytes", - "crates/tor-socksproto", - "crates/tor-checkable", - "crates/tor-cert", - "crates/tor-linkspec", - "crates/tor-cell", - "crates/tor-proto", - "crates/tor-netdoc", - "crates/tor-consdiff", - "crates/tor-netdir", - "crates/tor-persist", - "crates/tor-chanmgr", - "crates/tor-guardmgr", - "crates/tor-circmgr", - "crates/tor-dirclient", - "crates/tor-dirmgr", + "crates/arti", + "crates/arti-bench", "crates/arti-client", "crates/arti-config", "crates/arti-hyper", - "crates/arti", - "crates/arti-bench", "crates/arti-testing", + "crates/caret", + "crates/fs-mistrust", + "crates/retry-error", + "crates/safelog", + "crates/tor-basic-utils", + "crates/tor-bytes", + "crates/tor-cell", + "crates/tor-cert", + "crates/tor-chanmgr", + "crates/tor-checkable", + "crates/tor-circmgr", + "crates/tor-config", + "crates/tor-consdiff", + "crates/tor-dirclient", + "crates/tor-dirmgr", + "crates/tor-error", + "crates/tor-events", + "crates/tor-guardmgr", + "crates/tor-linkspec", + "crates/tor-llcrypto", + "crates/tor-netdir", + "crates/tor-netdoc", + "crates/tor-persist", + "crates/tor-proto", + "crates/tor-protover", + "crates/tor-rtcompat", + "crates/tor-rtmock", + "crates/tor-socksproto", + "crates/tor-units", ] resolver = "2" diff --git a/crates/arti-bench/Cargo.toml b/crates/arti-bench/Cargo.toml index 3dc8bea6f..8ed1b92c6 100644 --- a/crates/arti-bench/Cargo.toml +++ b/crates/arti-bench/Cargo.toml @@ -12,19 +12,19 @@ categories = ["asynchronous"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [dependencies] -clap = "2.33.0" -futures = "0.3.14" -float-ord = "0.3" -rand = "0.8" anyhow = "1.0.23" -serde = { version = "1.0.103", features = ["derive"] } -serde_json = "1.0.50" -tracing = "0.1.18" -tracing-subscriber = { version = "0.3.0", features = ["env-filter"] } -tokio = { version = "1.7", features = ["full"] } -tor-config = { path = "../tor-config", version = "0.4.0" } -tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", features = ["tokio", "native-tls"] } arti = { path = "../arti", version = "0.4.0" } arti-client = { package = "arti-client", path = "../arti-client", version = "0.4.0" } +clap = "2.33.0" +float-ord = "0.3" fs-mistrust = { path = "../fs-mistrust", version = "0.2.0" } +futures = "0.3.14" +rand = "0.8" +serde = { version = "1.0.103", features = ["derive"] } +serde_json = "1.0.50" +tokio = { version = "1.7", features = ["full"] } tokio-socks = "0.5" +tor-config = { path = "../tor-config", version = "0.4.0" } +tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", features = ["tokio", "native-tls"] } +tracing = "0.1.18" +tracing-subscriber = { version = "0.3.0", features = ["env-filter"] } diff --git a/crates/arti-client/Cargo.toml b/crates/arti-client/Cargo.toml index 4709cd0f0..8b27acbe4 100644 --- a/crates/arti-client/Cargo.toml +++ b/crates/arti-client/Cargo.toml @@ -31,12 +31,22 @@ error_detail = [] experimental-api = [] [dependencies] +derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti" } +derive_more = "0.99" +directories = "4" +educe = "0.4.6" fs-mistrust = { path = "../fs-mistrust", version = "0.2.0", features = ["serde"] } +futures = "0.3.14" +humantime-serde = "1.1.1" +pin-project = "1" +postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] } safelog = { path = "../safelog", version = "0.1.0" } +serde = { version = "1.0.103", features = ["derive"] } +thiserror = "1" tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } +tor-chanmgr = { path = "../tor-chanmgr", version = "0.3.1" } tor-circmgr = { path = "../tor-circmgr", version = "0.3.1" } tor-config = { path = "../tor-config", version = "0.4.0" } -tor-chanmgr = { path = "../tor-chanmgr", version = "0.3.1" } tor-dirmgr = { path = "../tor-dirmgr", version = "0.4.0" } tor-error = { path = "../tor-error", version = "0.3.1" } tor-guardmgr = { path = "../tor-guardmgr", version = "0.3.1" } @@ -44,21 +54,13 @@ tor-netdoc = { path = "../tor-netdoc", version = "0.4.0" } tor-persist = { path = "../tor-persist", version = "0.4.0" } tor-proto = { path = "../tor-proto", version = "0.3.1" } tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } - -humantime-serde = "1.1.1" -derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti" } -derive_more = "0.99" -directories = "4" -educe = "0.4.6" -futures = "0.3.14" -postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] } tracing = "0.1.18" -serde = { version = "1.0.103", features = ["derive"] } -thiserror = "1" -pin-project = "1" [dev-dependencies] -tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", features = ["tokio", "native-tls"] } +anyhow = "1.0.23" +once_cell = "1.9" +pin-project = "1" +tempfile = "3.3" tokio-crate = { package = "tokio", version = "1.7", features = [ "rt", "rt-multi-thread", @@ -67,9 +69,6 @@ tokio-crate = { package = "tokio", version = "1.7", features = [ "time", "macros", ] } -pin-project = "1" tokio-util = { version = "0.7.0", features = ["compat"] } -anyhow = "1.0.23" +tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", features = ["tokio", "native-tls"] } tracing-subscriber = "0.3.0" -tempfile = "3.3" -once_cell = "1.9" diff --git a/crates/arti-hyper/Cargo.toml b/crates/arti-hyper/Cargo.toml index 16311e56e..7827402a2 100644 --- a/crates/arti-hyper/Cargo.toml +++ b/crates/arti-hyper/Cargo.toml @@ -29,6 +29,9 @@ arti-client = { path = "../arti-client", version = "0.4.0" } educe = "0.4.6" hyper = { version = "0.14", features = ["http1", "client", "runtime"] } pin-project = "1" +thiserror = "1" +tls-api = { version = "0.8" } +tls-api-native-tls = { version = "0.8.0" } tokio = { package = "tokio", version = "1.7", features = [ "rt", "rt-multi-thread", @@ -37,9 +40,6 @@ tokio = { package = "tokio", version = "1.7", features = [ "time", "macros", ] } -thiserror = "1" -tls-api = { version = "0.8" } -tls-api-native-tls = { version = "0.8.0" } tor-error = { path = "../tor-error", version = "0.3.1" } tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", features = ["tokio"] } diff --git a/crates/arti-testing/Cargo.toml b/crates/arti-testing/Cargo.toml index 5b0fded54..73603c2bf 100644 --- a/crates/arti-testing/Cargo.toml +++ b/crates/arti-testing/Cargo.toml @@ -15,34 +15,33 @@ publish = false [features] [dependencies] +anyhow = "1.0.23" arti = { package = "arti", path = "../arti", version = "0.4.0" } arti-client = { package = "arti-client", path = "../arti-client", version = "0.4.0", features = [ "dirfilter", ] } -tor-dirmgr = { package = "tor-dirmgr", path = "../tor-dirmgr", version = "0.4.0", features = [ - "dirfilter", -] } -tor-netdoc = { package = "tor-netdoc", path = "../tor-netdoc", version = "0.4.0", features = [ - "experimental-api", - "dangerous-expose-struct-fields", -] } -tor-checkable = { path = "../tor-checkable", version = "0.3.0", features = ["experimental-api"] } -tor-config = { path = "../tor-config", version = "0.4.0" } -tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } -tor-error = { path = "../tor-error", version = "0.3.1" } - -anyhow = "1.0.23" async-trait = "0.1.2" -config = { version = "0.13", default-features = false } cfg-if = "1.0.0" +clap = "2.33.0" +config = { version = "0.13", default-features = false } futures = "0.3.14" -tracing = "0.1.18" notify = "4.0" pin-project = "1" rand = "0.8" rlimit = "0.8.3" serde = { version = "1.0.103", features = ["derive"] } -tracing-subscriber = { version = "0.3.0", features = ["env-filter"] } tokio = { version = "1.7", features = ["signal", "macros"] } -clap = "2.33.0" +tor-checkable = { path = "../tor-checkable", version = "0.3.0", features = ["experimental-api"] } +tor-config = { path = "../tor-config", version = "0.4.0" } +tor-dirmgr = { package = "tor-dirmgr", path = "../tor-dirmgr", version = "0.4.0", features = [ + "dirfilter", +] } +tor-error = { path = "../tor-error", version = "0.3.1" } +tor-netdoc = { package = "tor-netdoc", path = "../tor-netdoc", version = "0.4.0", features = [ + "experimental-api", + "dangerous-expose-struct-fields", +] } +tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } +tracing = "0.1.18" tracing-appender = "0.2.0" +tracing-subscriber = { version = "0.3.0", features = ["env-filter"] } diff --git a/crates/arti/Cargo.toml b/crates/arti/Cargo.toml index 20dced7b8..143a6833f 100644 --- a/crates/arti/Cargo.toml +++ b/crates/arti/Cargo.toml @@ -23,30 +23,29 @@ static-native-tls = ["arti-client/static-native-tls", "native-tls"] journald = ["tracing-journald"] [dependencies] -safelog = { path = "../safelog", version = "0.1.0" } -fs-mistrust = { path = "../fs-mistrust", version = "0.2.0" } -arti-client = { package = "arti-client", path = "../arti-client", version = "0.4.0", default-features = false } -tor-config = { path = "../tor-config", version = "0.4.0" } -tor-error = { path = "../tor-error", version = "0.3.1", default-features = false } -tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", default-features = false } -tor-socksproto = { path = "../tor-socksproto", version = "0.3.0"} - anyhow = "1.0.23" +arti-client = { package = "arti-client", path = "../arti-client", version = "0.4.0", default-features = false } async-ctrlc = { version = "1.2.0", optional = true } -config = { version = "0.13", default-features = false, features = ["toml"] } cfg-if = "1.0.0" +clap = "2.33.0" +config = { version = "0.13", default-features = false, features = ["toml"] } derive_builder = { version = "0.11", package = "derive_builder_fork_arti" } +fs-mistrust = { path = "../fs-mistrust", version = "0.2.0" } futures = "0.3.14" -tracing = "0.1.18" notify = "4.0" once_cell = { version = "1", optional = true } rlimit = "0.8.3" +safelog = { path = "../safelog", version = "0.1.0" } serde = { version = "1.0.103", features = ["derive"] } -tracing-subscriber = { version = "0.3.0", features = ["env-filter"] } tokio-crate = { package = "tokio", version = "1.7", optional = true, features = ["signal"] } -clap = "2.33.0" -tracing-journald = { version = "0.3.0", optional = true } +tor-config = { path = "../tor-config", version = "0.4.0" } +tor-error = { path = "../tor-error", version = "0.3.1", default-features = false } +tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", default-features = false } +tor-socksproto = { path = "../tor-socksproto", version = "0.3.0" } +tracing = "0.1.18" tracing-appender = "0.2.0" +tracing-journald = { version = "0.3.0", optional = true } +tracing-subscriber = { version = "0.3.0", features = ["env-filter"] } trust-dns-proto = "0.21.1" [dev-dependencies] diff --git a/crates/fs-mistrust/Cargo.toml b/crates/fs-mistrust/Cargo.toml index 1884e9895..372629e32 100644 --- a/crates/fs-mistrust/Cargo.toml +++ b/crates/fs-mistrust/Cargo.toml @@ -16,9 +16,9 @@ default = ["walkdir"] [dependencies] derive_builder = { version = "0.11", package = "derive_builder_fork_arti" } educe = "0.4.6" +serde = { version = "1.0.103", features = ["derive"], optional = true } thiserror = "1" walkdir = { version = "2", optional = true } -serde = { version = "1.0.103", features = ["derive"], optional = true } [target.'cfg(unix)'.dependencies] libc = "0.2" diff --git a/crates/safelog/Cargo.toml b/crates/safelog/Cargo.toml index e3430d828..1e5443d6e 100644 --- a/crates/safelog/Cargo.toml +++ b/crates/safelog/Cargo.toml @@ -17,9 +17,9 @@ default = [] [dependencies] educe = "0.4.6" -thiserror = "1" fluid-let = "1" serde = { version = "1.0.103", optional = true, features = ["derive"] } +thiserror = "1" [dev-dependencies] serial_test = "0.6" diff --git a/crates/tor-basic-utils/Cargo.toml b/crates/tor-basic-utils/Cargo.toml index f73149175..90d619312 100644 --- a/crates/tor-basic-utils/Cargo.toml +++ b/crates/tor-basic-utils/Cargo.toml @@ -14,8 +14,8 @@ repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [dependencies] futures = "0.3.14" -rand = "0.8" pin-project = "1" +rand = "0.8" [dev-dependencies] derive_more = "0.99" diff --git a/crates/tor-bytes/Cargo.toml b/crates/tor-bytes/Cargo.toml index 603fe7350..2a65985d9 100644 --- a/crates/tor-bytes/Cargo.toml +++ b/crates/tor-bytes/Cargo.toml @@ -12,15 +12,14 @@ categories = ["parsing", "encoding"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [dependencies] -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} -tor-error = { path = "../tor-error", version = "0.3.1" } - arrayref = "0.3" bytes = "1" digest = { version = "0.10.0", features = ["subtle", "mac"] } generic-array = "0.14.3" signature = "1" thiserror = "1" +tor-error = { path = "../tor-error", version = "0.3.1" } +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } [dev-dependencies] hex-literal = "0.3" diff --git a/crates/tor-cell/Cargo.toml b/crates/tor-cell/Cargo.toml index 35287ad87..0f8bc558b 100644 --- a/crates/tor-cell/Cargo.toml +++ b/crates/tor-cell/Cargo.toml @@ -12,21 +12,20 @@ categories = ["parser-implementations", "network-programming"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [dependencies] -caret = { path = "../caret", version = "0.2.0"} -educe = "0.4.6" -tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} -tor-bytes = { path = "../tor-bytes", version = "0.3.0"} -tor-cert = { path = "../tor-cert", version = "0.3.0"} -tor-error = { path = "../tor-error", version = "0.3.1" } -tor-linkspec = { path = "../tor-linkspec", version = "0.3.0"} - arrayref = "0.3" bitflags = "1" bytes = "1" +caret = { path = "../caret", version = "0.2.0" } +educe = "0.4.6" rand = "0.8" thiserror = "1" +tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } +tor-bytes = { path = "../tor-bytes", version = "0.3.0" } +tor-cert = { path = "../tor-cert", version = "0.3.0" } +tor-error = { path = "../tor-error", version = "0.3.1" } +tor-linkspec = { path = "../tor-linkspec", version = "0.3.0" } +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } [dev-dependencies] -hex-literal = "0.3" hex = "0.4" +hex-literal = "0.3" diff --git a/crates/tor-cert/Cargo.toml b/crates/tor-cert/Cargo.toml index ae16b25cd..2c320266c 100644 --- a/crates/tor-cert/Cargo.toml +++ b/crates/tor-cert/Cargo.toml @@ -12,13 +12,12 @@ categories = ["parser-implementations"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [dependencies] -caret = { path = "../caret", version = "0.2.0"} -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} -tor-bytes = { path = "../tor-bytes", version = "0.3.0"} -tor-checkable = { path = "../tor-checkable", version = "0.3.0"} - +caret = { path = "../caret", version = "0.2.0" } digest = "0.10.0" signature = "1" +tor-bytes = { path = "../tor-bytes", version = "0.3.0" } +tor-checkable = { path = "../tor-checkable", version = "0.3.0" } +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } [dev-dependencies] base64 = "0.13.0" diff --git a/crates/tor-chanmgr/Cargo.toml b/crates/tor-chanmgr/Cargo.toml index 74beb46d4..15768e420 100644 --- a/crates/tor-chanmgr/Cargo.toml +++ b/crates/tor-chanmgr/Cargo.toml @@ -14,25 +14,24 @@ repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [features] [dependencies] -tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } -tor-error = { path = "../tor-error", version = "0.3.1" } -tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } -tor-proto = { path = "../tor-proto", version = "0.3.1" } -tor-linkspec = { path = "../tor-linkspec", version = "0.3.0"} -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} - async-trait = "0.1.2" derive_more = "0.99" educe = "0.4.6" futures = "0.3.14" postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] } rand = "0.8" -tracing = "0.1.18" thiserror = "1" +tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } +tor-error = { path = "../tor-error", version = "0.3.1" } +tor-linkspec = { path = "../tor-linkspec", version = "0.3.0" } +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } +tor-proto = { path = "../tor-proto", version = "0.3.1" } +tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } +tracing = "0.1.18" [dev-dependencies] float_eq = "0.7" futures-await-test = "0.3.0" hex-literal = "0.3" -tor-rtmock = { path = "../tor-rtmock", version = "0.4.0" } tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", features = ["tokio", "native-tls"] } +tor-rtmock = { path = "../tor-rtmock", version = "0.4.0" } diff --git a/crates/tor-checkable/Cargo.toml b/crates/tor-checkable/Cargo.toml index de5022c12..b0393c44a 100644 --- a/crates/tor-checkable/Cargo.toml +++ b/crates/tor-checkable/Cargo.toml @@ -15,7 +15,6 @@ repository = "https://gitlab.torproject.org/tpo/core/arti.git/" experimental-api = [] [dependencies] -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} - signature = "1" thiserror = "1" +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } diff --git a/crates/tor-circmgr/Cargo.toml b/crates/tor-circmgr/Cargo.toml index 0f7d132f7..246b3e438 100644 --- a/crates/tor-circmgr/Cargo.toml +++ b/crates/tor-circmgr/Cargo.toml @@ -19,20 +19,6 @@ repository = "https://gitlab.torproject.org/tpo/core/arti.git/" experimental-api = [] [dependencies] -safelog = { path = "../safelog", version = "0.1.0" } -tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } -tor-chanmgr = { path = "../tor-chanmgr", version = "0.3.1" } -tor-config = { path = "../tor-config", version = "0.4.0" } -tor-error = { path = "../tor-error", version = "0.3.1" } -tor-guardmgr = { path = "../tor-guardmgr", version = "0.3.1" } -tor-netdir = { path = "../tor-netdir", version = "0.3.0"} -tor-netdoc = { path = "../tor-netdoc", version = "0.4.0" } -tor-proto = { path = "../tor-proto", version = "0.3.1" } -retry-error = { path = "../retry-error", version = "0.2.0"} -tor-linkspec = { path = "../tor-linkspec", version = "0.3.0"} -tor-persist = { path = "../tor-persist", version = "0.4.0" } -tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } - async-trait = "0.1.2" bounded-vec-deque = "0.1" derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti" } @@ -43,19 +29,32 @@ futures = "0.3.14" humantime-serde = "1.1.1" itertools = "0.10.1" once_cell = "1" -tracing = "0.1.18" pin-project = "1" rand = "0.8" +retry-error = { path = "../retry-error", version = "0.2.0" } +safelog = { path = "../safelog", version = "0.1.0" } serde = { version = "1.0.103", features = ["derive"] } static_assertions = "1" thiserror = "1" +tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } +tor-chanmgr = { path = "../tor-chanmgr", version = "0.3.1" } +tor-config = { path = "../tor-config", version = "0.4.0" } +tor-error = { path = "../tor-error", version = "0.3.1" } +tor-guardmgr = { path = "../tor-guardmgr", version = "0.3.1" } +tor-linkspec = { path = "../tor-linkspec", version = "0.3.0" } +tor-netdir = { path = "../tor-netdir", version = "0.3.0" } +tor-netdoc = { path = "../tor-netdoc", version = "0.4.0" } +tor-persist = { path = "../tor-persist", version = "0.4.0" } +tor-proto = { path = "../tor-proto", version = "0.3.1" } +tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } +tracing = "0.1.18" weak-table = "0.3.0" [dev-dependencies] futures-await-test = "0.3.0" -tor-rtmock = { path = "../tor-rtmock", version = "0.4.0" } tor-guardmgr = { path = "../tor-guardmgr", version = "0.3.1", features = ["testing"] } -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } tor-netdir = { path = "../tor-netdir", version = "0.3.0", features = ["testing"] } tor-persist = { path = "../tor-persist", version = "0.4.0", features = ["testing"] } tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", features = ["tokio", "native-tls"] } +tor-rtmock = { path = "../tor-rtmock", version = "0.4.0" } diff --git a/crates/tor-config/Cargo.toml b/crates/tor-config/Cargo.toml index e5e1dc4db..cb9baa6a7 100644 --- a/crates/tor-config/Cargo.toml +++ b/crates/tor-config/Cargo.toml @@ -16,12 +16,9 @@ default = ["expand-paths"] expand-paths = ["shellexpand", "directories"] [dependencies] -tor-error = { path = "../tor-error", version = "0.3.1" } -tor-basic-utils = { path="../tor-basic-utils", version = "0.3.1" } - -thiserror = "1" config = { version = "0.13", default-features = false, features = ["toml"] } derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti" } +directories = { version = "4", optional = true } educe = "0.4.6" fs-mistrust = { path = "../fs-mistrust", version = "0.2.0" } itertools = "0.10.1" @@ -31,9 +28,11 @@ regex = { version = "1", default-features = false, features = ["std"] } serde = { version = "1.0.103", features = ["derive"] } serde_ignored = "0.1.3" shellexpand = { version = "2.1", package = "shellexpand-fork", optional = true } +thiserror = "1" toml = "0.5" +tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } +tor-error = { path = "../tor-error", version = "0.3.1" } tracing = "0.1.18" -directories = { version = "4", optional = true } [dev-dependencies] anyhow = "1.0.23" diff --git a/crates/tor-consdiff/Cargo.toml b/crates/tor-consdiff/Cargo.toml index d0d70335f..e8fe9f74a 100644 --- a/crates/tor-consdiff/Cargo.toml +++ b/crates/tor-consdiff/Cargo.toml @@ -7,18 +7,16 @@ rust-version = "1.56" license = "MIT OR Apache-2.0" homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home" description = "Handle the consensus-diff format used in the Tor directory protocol" -keywords = [ "tor", "arti", "diff" ] -categories = [ "parser-implementations", "network-programming" ] -repository="https://gitlab.torproject.org/tpo/core/arti.git/" +keywords = ["tor", "arti", "diff"] +categories = ["parser-implementations", "network-programming"] +repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [features] default = [] slow-diff-apply = [] [dependencies] - -tor-llcrypto = { path="../tor-llcrypto", version = "0.3.0"} - digest = "0.10.0" hex = "0.4" thiserror = "1" +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } diff --git a/crates/tor-dirclient/Cargo.toml b/crates/tor-dirclient/Cargo.toml index 4974774e0..2a525d7fc 100644 --- a/crates/tor-dirclient/Cargo.toml +++ b/crates/tor-dirclient/Cargo.toml @@ -19,27 +19,26 @@ zstd = ["async-compression/zstd"] routerdesc = [] [dependencies] -tor-circmgr = { path = "../tor-circmgr", version = "0.3.1" } -tor-error = { path = "../tor-error", version = "0.3.1" } -tor-linkspec = { path = "../tor-linkspec", version = "0.3.0"} -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} -tor-proto = { path = "../tor-proto", version = "0.3.1" } -tor-netdoc = { path = "../tor-netdoc", version = "0.4.0" } -tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } - async-compression = { version = "0.3.14", features = ["futures-io", "zlib"] } base64 = "0.13.0" derive_more = "0.99" futures = "0.3.14" hex = "0.4" http = "0.2" -httpdate = "1.0" httparse = "1.2" -tracing = "0.1.18" +httpdate = "1.0" memchr = "2" thiserror = "1" +tor-circmgr = { path = "../tor-circmgr", version = "0.3.1" } +tor-error = { path = "../tor-error", version = "0.3.1" } +tor-linkspec = { path = "../tor-linkspec", version = "0.3.0" } +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } +tor-netdoc = { path = "../tor-netdoc", version = "0.4.0" } +tor-proto = { path = "../tor-proto", version = "0.3.1" } +tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } +tracing = "0.1.18" [dev-dependencies] futures-await-test = "0.3.0" -tor-rtmock = { path = "../tor-rtmock", version = "0.4.0" } tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", features = ["tokio", "native-tls"] } +tor-rtmock = { path = "../tor-rtmock", version = "0.4.0" } diff --git a/crates/tor-dirmgr/Cargo.toml b/crates/tor-dirmgr/Cargo.toml index 764d073e2..07b39df49 100644 --- a/crates/tor-dirmgr/Cargo.toml +++ b/crates/tor-dirmgr/Cargo.toml @@ -26,21 +26,6 @@ dirfilter = [] experimental-api = [] [dependencies] -fs-mistrust = { path = "../fs-mistrust", version = "0.2.0" } -tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } -retry-error = { path = "../retry-error", version = "0.2.0"} -tor-checkable = { path = "../tor-checkable", version = "0.3.0"} -tor-circmgr = { path = "../tor-circmgr", version = "0.3.1" } -tor-config = { path = "../tor-config", version = "0.4.0" } -tor-consdiff = { path = "../tor-consdiff", version = "0.3.0"} -tor-dirclient = { path = "../tor-dirclient", version = "0.3.1" } -tor-error = { path = "../tor-error", version = "0.3.1" } -tor-guardmgr = { path = "../tor-guardmgr", version = "0.3.1" } -tor-netdir = { path = "../tor-netdir", version = "0.3.0"} -tor-netdoc = { path = "../tor-netdoc", version = "0.4.0" } -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} -tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } - async-trait = "0.1.2" base64 = "0.13.0" derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti" } @@ -48,26 +33,40 @@ derive_more = "0.99" digest = "0.10.0" educe = "0.4.6" event-listener = "2" -futures = "0.3.14" +fs-mistrust = { path = "../fs-mistrust", version = "0.2.0" } fslock = { version = "0.2.0" } +futures = "0.3.14" hex = "0.4" +humantime-serde = "1.1.1" itertools = "0.10.1" -tracing = "0.1.18" memmap2 = { version = "0.5.0", optional = true } once_cell = "1" postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] } rand = "0.8" +retry-error = { path = "../retry-error", version = "0.2.0" } rusqlite = { version = "0.27.0", features = ["time"] } serde = { version = "1.0.103", features = ["derive"] } signature = "1" thiserror = "1" time = { version = "0.3", features = ["formatting", "parsing"] } -humantime-serde = "1.1.1" +tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } +tor-checkable = { path = "../tor-checkable", version = "0.3.0" } +tor-circmgr = { path = "../tor-circmgr", version = "0.3.1" } +tor-config = { path = "../tor-config", version = "0.4.0" } +tor-consdiff = { path = "../tor-consdiff", version = "0.3.0" } +tor-dirclient = { path = "../tor-dirclient", version = "0.3.1" } +tor-error = { path = "../tor-error", version = "0.3.1" } +tor-guardmgr = { path = "../tor-guardmgr", version = "0.3.1" } +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } +tor-netdir = { path = "../tor-netdir", version = "0.3.0" } +tor-netdoc = { path = "../tor-netdoc", version = "0.4.0" } +tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } +tracing = "0.1.18" [dev-dependencies] +float_eq = "0.7" futures-await-test = "0.3.0" hex-literal = "0.3" tempfile = "3" tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", features = ["tokio", "native-tls"] } tor-rtmock = { path = "../tor-rtmock", version = "0.4.0" } -float_eq = "0.7" diff --git a/crates/tor-events/Cargo.toml b/crates/tor-events/Cargo.toml index c96d28d67..623b35599 100644 --- a/crates/tor-events/Cargo.toml +++ b/crates/tor-events/Cargo.toml @@ -12,12 +12,12 @@ categories = ["asynchronous"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [dependencies] -serde = { version = "1.0.103", features = ["derive"] } async-broadcast = "0.4.0" futures = "0.3.14" -tracing = "0.1.18" once_cell = "1" +serde = { version = "1.0.103", features = ["derive"] } thiserror = "1" +tracing = "0.1.18" [dev-dependencies] tokio = { version = "1.7", features = ["macros", "rt", "rt-multi-thread", "time"] } diff --git a/crates/tor-guardmgr/Cargo.toml b/crates/tor-guardmgr/Cargo.toml index 45bd8d8a6..df4754d07 100644 --- a/crates/tor-guardmgr/Cargo.toml +++ b/crates/tor-guardmgr/Cargo.toml @@ -19,17 +19,6 @@ default = [] testing = [] [dependencies] -tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } -tor-config = { path = "../tor-config", version = "0.4.0" } -tor-error = { path = "../tor-error", version = "0.3.1" } -tor-netdir = { path = "../tor-netdir", version = "0.3.0"} -tor-linkspec = { path = "../tor-linkspec", version = "0.3.0"} -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} -tor-persist = { path = "../tor-persist", version = "0.4.0" } -tor-proto = { path = "../tor-proto", version = "0.3.1" } -tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } -tor-units = { path = "../tor-units", version = "0.3.0"} - base64 = "0.13.0" derive_builder = { version = "0.11", package = "derive_builder_fork_arti" } derive_more = "0.99" @@ -41,16 +30,25 @@ itertools = "0.10.1" pin-project = "1" postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] } rand = "0.8" -serde = { version = "1.0.103", features = ["derive"] } retain_mut = "0.1.3" +serde = { version = "1.0.103", features = ["derive"] } thiserror = "1" +tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } +tor-config = { path = "../tor-config", version = "0.4.0" } +tor-error = { path = "../tor-error", version = "0.3.1" } +tor-linkspec = { path = "../tor-linkspec", version = "0.3.0" } +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } +tor-netdir = { path = "../tor-netdir", version = "0.3.0" } +tor-persist = { path = "../tor-persist", version = "0.4.0" } +tor-proto = { path = "../tor-proto", version = "0.3.1" } +tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0" } +tor-units = { path = "../tor-units", version = "0.3.0" } tracing = "0.1.18" [dev-dependencies] +float_eq = "0.7" tor-netdir = { path = "../tor-netdir", version = "0.3.0", features = ["testing"] } tor-netdoc = { path = "../tor-netdoc", version = "0.4.0" } tor-persist = { path = "../tor-persist", version = "0.4.0", features = ["testing"] } tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", features = ["tokio", "native-tls"] } tor-rtmock = { path = "../tor-rtmock", version = "0.4.0" } - -float_eq = "0.7" diff --git a/crates/tor-linkspec/Cargo.toml b/crates/tor-linkspec/Cargo.toml index c5a60e9f0..208fcebc3 100644 --- a/crates/tor-linkspec/Cargo.toml +++ b/crates/tor-linkspec/Cargo.toml @@ -12,9 +12,9 @@ categories = ["network-programming"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [dependencies] -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} -tor-bytes = { path = "../tor-bytes", version = "0.3.0"} -tor-protover = { path = "../tor-protover", version = "0.3.0"} +tor-bytes = { path = "../tor-bytes", version = "0.3.0" } +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } +tor-protover = { path = "../tor-protover", version = "0.3.0" } [dev-dependencies] hex-literal = "0.3" diff --git a/crates/tor-llcrypto/Cargo.toml b/crates/tor-llcrypto/Cargo.toml index 779e24c84..faa0e42bc 100644 --- a/crates/tor-llcrypto/Cargo.toml +++ b/crates/tor-llcrypto/Cargo.toml @@ -24,29 +24,29 @@ hsv3-client = [] aes = { version = "0.8" } arrayref = "0.3" base64 = "0.13.0" -curve25519-dalek = "3.2" ctr = "0.9" +curve25519-dalek = "3.2" digest = "0.10.0" ed25519-dalek = { version = "1", features = ["batch"] } hex = "0.4" -rand_core = "0.6.2" old_rand_core = { package = "rand_core", version = "0.5.1" } +rand_core = "0.6.2" rsa = "0.5.0" +serde = "1.0.103" sha-1 = "0.10.0" sha2 = "0.10.0" sha3 = "0.10.0" -serde = "1.0.103" signature = "1" simple_asn1 = "0.6" subtle = "2" +thiserror = "1" x25519-dalek = "1.2" zeroize = "1" -thiserror = "1" [dev-dependencies] +cipher = "0.4.1" hex-literal = "0.3" rand = "0.8" -cipher = "0.4.1" serde_test = "1.0.124" [target.wasm32-unknown-unknown.dependencies] diff --git a/crates/tor-netdir/Cargo.toml b/crates/tor-netdir/Cargo.toml index da0673ff2..2a9ac6635 100644 --- a/crates/tor-netdir/Cargo.toml +++ b/crates/tor-netdir/Cargo.toml @@ -25,28 +25,27 @@ experimental-api = [] testing = ["hex", "hex-literal", "tor-netdoc/build_docs"] [dependencies] -tor-checkable = { path = "../tor-checkable", version = "0.3.0"} -tor-config = { path = "../tor-config", version = "0.4.0" } -tor-netdoc = { path = "../tor-netdoc", version = "0.4.0" } -tor-linkspec = { path = "../tor-linkspec", version = "0.3.0"} -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} -tor-protover = { path = "../tor-protover", version = "0.3.0"} -tor-units = { path = "../tor-units", version = "0.3.0"} - bitflags = "1" derive_builder = { version = "0.11.2", package = "derive_builder_fork_arti" } derive_more = "0.99" +futures = "0.3.14" hex = { version = "0.4", optional = true } hex-literal = { version = "0.3", optional = true } rand = "0.8" serde = { version = "1.0.103", features = ["derive"] } signature = "1" thiserror = "1" +tor-checkable = { path = "../tor-checkable", version = "0.3.0" } +tor-config = { path = "../tor-config", version = "0.4.0" } +tor-linkspec = { path = "../tor-linkspec", version = "0.3.0" } +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } +tor-netdoc = { path = "../tor-netdoc", version = "0.4.0" } +tor-protover = { path = "../tor-protover", version = "0.3.0" } +tor-units = { path = "../tor-units", version = "0.3.0" } tracing = "0.1.18" -futures = "0.3.14" [dev-dependencies] hex = "0.4" hex-literal = "0.3" -tor-netdoc = { path = "../tor-netdoc", version = "0.4.0", features = ["build_docs"] } rand_chacha = "0.3" +tor-netdoc = { path = "../tor-netdoc", version = "0.4.0", features = ["build_docs"] } diff --git a/crates/tor-netdoc/Cargo.toml b/crates/tor-netdoc/Cargo.toml index 827aa8032..6b3c85945 100644 --- a/crates/tor-netdoc/Cargo.toml +++ b/crates/tor-netdoc/Cargo.toml @@ -42,31 +42,29 @@ experimental-api = [] dangerous-expose-struct-fields = ["visible", "visibility"] [dependencies] -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} -tor-bytes = { path = "../tor-bytes", version = "0.3.0"} -tor-cert = { path = "../tor-cert", version = "0.3.0"} -tor-protover = { path = "../tor-protover", version = "0.3.0"} -tor-checkable = { path = "../tor-checkable", version = "0.3.0"} -tor-error = { path = "../tor-error", version = "0.3.1" } - base64 = "0.13.0" bitflags = "1" -time = { version = "0.3", features = ["std", "parsing", "macros"] } derive_more = "0.99" digest = "0.10.0" educe = "0.4.6" hex = "0.4" once_cell = "1" phf = { version = "0.10.0", features = ["macros"] } +rand = { version = "0.8", optional = true } serde = "1.0.103" signature = "1" -tinystr = "0.6.0" thiserror = "1" -visible = { version = "0.0.1", optional = true } +time = { version = "0.3", features = ["std", "parsing", "macros"] } +tinystr = "0.6.0" +tor-bytes = { path = "../tor-bytes", version = "0.3.0" } +tor-cert = { path = "../tor-cert", version = "0.3.0" } +tor-checkable = { path = "../tor-checkable", version = "0.3.0" } +tor-error = { path = "../tor-error", version = "0.3.1" } +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } +tor-protover = { path = "../tor-protover", version = "0.3.0" } visibility = { version = "0.0.1", optional = true } +visible = { version = "0.0.1", optional = true } weak-table = "0.3.0" -rand = { version = "0.8", optional = true } - [dev-dependencies] hex-literal = "0.3" diff --git a/crates/tor-persist/Cargo.toml b/crates/tor-persist/Cargo.toml index bd4dc8206..8712a8b8e 100644 --- a/crates/tor-persist/Cargo.toml +++ b/crates/tor-persist/Cargo.toml @@ -18,12 +18,12 @@ testing = [] [dependencies] fs-mistrust = { path = "../fs-mistrust", version = "0.2.0", features = ["walkdir"] } +sanitize-filename = "0.4.0" serde = { version = "1.0.103", features = ["derive"] } serde_json = "1.0.50" -sanitize-filename = "0.4.0" thiserror = "1" -tracing = "0.1.18" tor-error = { path = "../tor-error", version = "0.3.1" } +tracing = "0.1.18" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] fslock = { version = "0.2.0" } diff --git a/crates/tor-proto/Cargo.toml b/crates/tor-proto/Cargo.toml index fbb593866..e0ce84ed6 100644 --- a/crates/tor-proto/Cargo.toml +++ b/crates/tor-proto/Cargo.toml @@ -18,39 +18,37 @@ ntor_v3 = [] tokio = ["tokio-crate", "tokio-util"] [dependencies] -tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } -tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0"} -tor-bytes = { path = "../tor-bytes", version = "0.3.0"} -tor-cert = { path = "../tor-cert", version = "0.3.0"} -tor-error = { path = "../tor-error", version = "0.3.1" } -tor-linkspec = { path = "../tor-linkspec", version = "0.3.0"} -tor-checkable = { path = "../tor-checkable", version = "0.3.0"} -tor-protover = { path = "../tor-protover", version = "0.3.0"} -tor-cell = { path = "../tor-cell", version = "0.3.0"} - arrayref = "0.3" +asynchronous-codec = "0.6.0" bytes = "1" cipher = "0.4.1" coarsetime = "0.1.20" digest = "0.10.0" educe = "0.4.6" futures = "0.3.14" -asynchronous-codec = "0.6.0" generic-array = "0.14.3" hkdf = "0.12.0" hmac = "0.12.0" -tracing = "0.1.18" rand = "0.8" rand_core = "0.6.2" subtle = "2" thiserror = "1" +tokio-crate = { package = "tokio", version = "1.7", optional = true } +tokio-util = { version = "0.7.0", features = ["compat"], optional = true } +tor-basic-utils = { path = "../tor-basic-utils", version = "0.3.1" } +tor-bytes = { path = "../tor-bytes", version = "0.3.0" } +tor-cell = { path = "../tor-cell", version = "0.3.0" } +tor-cert = { path = "../tor-cert", version = "0.3.0" } +tor-checkable = { path = "../tor-checkable", version = "0.3.0" } +tor-error = { path = "../tor-error", version = "0.3.1" } +tor-linkspec = { path = "../tor-linkspec", version = "0.3.0" } +tor-llcrypto = { path = "../tor-llcrypto", version = "0.3.0" } +tor-protover = { path = "../tor-protover", version = "0.3.0" } +tracing = "0.1.18" typenum = "1.12" zeroize = "1" -tokio-crate = { package = "tokio", version = "1.7", optional = true } -tokio-util = { version = "0.7.0", features = ["compat"], optional = true } - [dev-dependencies] -tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", features = ["tokio", "native-tls"] } -hex-literal = "0.3" hex = "0.4" +hex-literal = "0.3" +tor-rtcompat = { path = "../tor-rtcompat", version = "0.4.0", features = ["tokio", "native-tls"] } diff --git a/crates/tor-protover/Cargo.toml b/crates/tor-protover/Cargo.toml index 2089d23d3..f45f391f8 100644 --- a/crates/tor-protover/Cargo.toml +++ b/crates/tor-protover/Cargo.toml @@ -12,6 +12,5 @@ categories = ["network-programming"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [dependencies] -caret = { path = "../caret", version = "0.2.0"} - +caret = { path = "../caret", version = "0.2.0" } thiserror = "1" diff --git a/crates/tor-rtcompat/Cargo.toml b/crates/tor-rtcompat/Cargo.toml index 343eff9f0..b4c299c24 100644 --- a/crates/tor-rtcompat/Cargo.toml +++ b/crates/tor-rtcompat/Cargo.toml @@ -23,21 +23,19 @@ native-tls = ["native-tls-crate", "async-native-tls"] rustls = ["rustls-crate", "async-rustls", "x509-signature"] [dependencies] - -async_executors = { version = "0.6.0", default_features = false } +async-io = { version = "1.4.1", optional = true } +async-native-tls = { version = "0.4.0", optional = true } +async-rustls = { version = "0.2.0", optional = true } +async-std-crate = { package = "async-std", version = "1.7.0", optional = true } async-trait = "0.1.2" +async_executors = { version = "0.6.0", default_features = false } educe = "0.4.6" futures = "0.3.14" -pin-project = "1" native-tls-crate = { package = "native-tls", version = "0.2", optional = true } +pin-project = "1" rustls-crate = { package = "rustls", version = "0.19", optional = true, features = [ "dangerous_configuration", ] } - -async-std-crate = { package = "async-std", version = "1.7.0", optional = true } -async-io = { version = "1.4.1", optional = true } -async-native-tls = { version = "0.4.0", optional = true } - tokio-crate = { package = "tokio", version = "1.7", optional = true, features = [ "rt", "rt-multi-thread", @@ -46,8 +44,6 @@ tokio-crate = { package = "tokio", version = "1.7", optional = true, features = "time", ] } tokio-util = { version = "0.7.0", features = ["compat"], optional = true } - -async-rustls = { version = "0.2.0", optional = true } x509-signature = { version = "0.5.0", optional = true } [dev-dependencies] diff --git a/crates/tor-rtmock/Cargo.toml b/crates/tor-rtmock/Cargo.toml index 3aea1e846..eec8b7564 100644 --- a/crates/tor-rtmock/Cargo.toml +++ b/crates/tor-rtmock/Cargo.toml @@ -16,9 +16,8 @@ async-trait = "0.1.2" futures = "0.3.14" pin-project = "1" thiserror = "1" -tracing = "0.1.18" - tor-rtcompat = { version = "0.4.0", path = "../tor-rtcompat" } +tracing = "0.1.18" [dev-dependencies] futures-await-test = "0.3.0" diff --git a/crates/tor-socksproto/Cargo.toml b/crates/tor-socksproto/Cargo.toml index 71c7a24c0..16db41fd0 100644 --- a/crates/tor-socksproto/Cargo.toml +++ b/crates/tor-socksproto/Cargo.toml @@ -12,11 +12,10 @@ categories = ["network-programming"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [dependencies] -caret = { path = "../caret", version = "0.2.0"} -tor-bytes = { path = "../tor-bytes", version = "0.3.0"} -tor-error = { path = "../tor-error", version = "0.3.1" } - +caret = { path = "../caret", version = "0.2.0" } thiserror = "1" +tor-bytes = { path = "../tor-bytes", version = "0.3.0" } +tor-error = { path = "../tor-error", version = "0.3.1" } [dev-dependencies] hex-literal = "0.3" diff --git a/crates/tor-units/Cargo.toml b/crates/tor-units/Cargo.toml index fcb20e37d..ddcc1ee0c 100644 --- a/crates/tor-units/Cargo.toml +++ b/crates/tor-units/Cargo.toml @@ -10,7 +10,6 @@ description = "Provides macros for types which are constrained within a range, e keywords = ["tor", "arti"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" categories = ["rust-patterns"] - # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] diff --git a/maint/cargo_sort b/maint/cargo_sort new file mode 100755 index 000000000..463347f3b --- /dev/null +++ b/maint/cargo_sort @@ -0,0 +1,7 @@ +#!/bin/bash +# +# Run "cargo sort" with an appropriate set of flags. + +set -euo pipefail + +cargo sort --check --workspace diff --git a/tomlfmt.toml b/tomlfmt.toml new file mode 100644 index 000000000..1bdd08156 --- /dev/null +++ b/tomlfmt.toml @@ -0,0 +1,22 @@ +# cargo-sort configuration +## https://github.com/DevinR528/cargo-sort + +# trailing comma in arrays +always_trailing_comma = false +# trailing comma when multi-line +multiline_trailing_comma = true +space_around_eq = true +# remove all the spacing inside the array +compact_arrays = false +# remove all the spacing inside the object +compact_inline_tables = false +trailing_newline = true +# is it ok to have blank lines inside of a table +# this option needs to be true for the --grouped flag +key_value_newlines = true +allowed_blank_lines = 1 +# windows style line endings +crlf = false +# The user specified ordering of tables in a document. +# All unspecified tables will come after these. +table_order = []