Skip to content

Commit

Permalink
chore: Set default-features=false, to eliminate some unneeded deps (#…
Browse files Browse the repository at this point in the history
…1704)

* chore: Set `default-features=false`, to eliminate some unneeded deps

* More

* More
  • Loading branch information
larseggert authored Mar 4, 2024
1 parent e826698 commit 4c3ccfd
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 34 deletions.
13 changes: 6 additions & 7 deletions neqo-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ license.workspace = true

[dependencies]
# neqo-client is not used in Firefox, so we can be liberal with dependency versions
clap = { version = "4.4", features = ["derive"] }
futures = "0.3"
hex = "0.4"
clap = { version = "4.4", default-features = false, features = ["std", "derive"] }
futures = { version = "0.3", default-features = false }
hex = { version = "0.4", default-features = false, features = ["std"] }
log = { version = "0.4", default-features = false }
neqo-common = { path = "./../neqo-common", features = ["udp"] }
neqo-crypto = { path = "./../neqo-crypto" }
neqo-http3 = { path = "./../neqo-http3" }
neqo-qpack = { path = "./../neqo-qpack" }
neqo-transport = { path = "./../neqo-transport" }
qlog = "0.12"
tokio = { version = "1", features = ["net", "time", "macros", "rt", "rt-multi-thread"] }
url = "2.5"

qlog = { version = "0.12", default-features = false }
tokio = { version = "1", default-features = false, features = ["net", "time", "macros", "rt", "rt-multi-thread"] }
url = { version = "2.5", default-features = false }
8 changes: 4 additions & 4 deletions neqo-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ license.workspace = true

[dependencies]
# Sync with https://searchfox.org/mozilla-central/source/Cargo.lock 2024-02-08
enum-map = "2.7"
enum-map = { version = "2.7", default-features = false }
env_logger = { version = "0.10", default-features = false }
log = { version = "0.4", default-features = false }
qlog = "0.12"
qlog = { version = "0.12", default-features = false }
quinn-udp = { git = "https://github.com/quinn-rs/quinn/", rev = "a947962131aba8a6521253d03cc948b20098a2d6", optional = true }
time = { version = "0.3", features = ["formatting"] }
tokio = { version = "1", features = ["net", "time", "macros", "rt", "rt-multi-thread"], optional = true }
time = { version = "0.3", default-features = false, features = ["formatting"] }
tokio = { version = "1", default-features = false, features = ["net", "time", "macros", "rt", "rt-multi-thread"], optional = true }

[dev-dependencies]
test-fixture = { path = "../test-fixture" }
Expand Down
8 changes: 4 additions & 4 deletions neqo-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ neqo-common = { path = "../neqo-common" }
[build-dependencies]
# Sync with https://searchfox.org/mozilla-central/source/Cargo.lock 2024-02-08
bindgen = { version = "0.69", default-features = false, features = ["runtime"] }
mozbuild = { version = "0.1", optional = true }
serde = "1.0"
serde_derive = "1.0"
toml = "0.5"
mozbuild = { version = "0.1", default-features = false, optional = true }
serde = { version = "1.0", default-features = false }
serde_derive = { version = "1.0", default-features = false }
toml = { version = "0.5", default-features = false }

[dev-dependencies]
test-fixture = { path = "../test-fixture" }
Expand Down
10 changes: 5 additions & 5 deletions neqo-http3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ license.workspace = true

[dependencies]
# Sync with https://searchfox.org/mozilla-central/source/Cargo.lock 2024-02-08
enumset = "1.1"
enumset = { version = "1.1", default-features = false }
log = { version = "0.4", default-features = false }
neqo-common = { path = "./../neqo-common" }
neqo-crypto = { path = "./../neqo-crypto" }
neqo-qpack = { path = "./../neqo-qpack" }
neqo-transport = { path = "./../neqo-transport" }
qlog = "0.12"
sfv = "0.9"
smallvec = "1.11"
url = "2.5"
qlog = { version = "0.12", default-features = false }
sfv = { version = "0.9", default-features = false }
smallvec = { version = "1.11", default-features = false }
url = { version = "2.5", default-features = false }

[dev-dependencies]
test-fixture = { path = "../test-fixture" }
Expand Down
4 changes: 2 additions & 2 deletions neqo-qpack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ log = { version = "0.4", default-features = false }
neqo-common = { path = "./../neqo-common" }
neqo-crypto = { path = "./../neqo-crypto" }
neqo-transport = { path = "./../neqo-transport" }
qlog = "0.12"
static_assertions = "1.1"
qlog = { version = "0.12", default-features = false }
static_assertions = { version = "1.1", default-features = false }

[dev-dependencies]
test-fixture = { path = "../test-fixture" }
11 changes: 5 additions & 6 deletions neqo-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ license.workspace = true

[dependencies]
# neqo-server is not used in Firefox, so we can be liberal with dependency versions
clap = { version = "4.4", features = ["derive"] }
futures = "0.3"
clap = { version = "4.4", default-features = false, features = ["std", "derive"] }
futures = { version = "0.3", default-features = false, features = ["alloc"] }
log = { version = "0.4", default-features = false }
neqo-common = { path = "./../neqo-common", features = ["udp"] }
neqo-crypto = { path = "./../neqo-crypto" }
neqo-http3 = { path = "./../neqo-http3" }
neqo-qpack = { path = "./../neqo-qpack" }
neqo-transport = { path = "./../neqo-transport" }
qlog = "0.12"
regex = "1.9"
tokio = { version = "1", features = ["net", "time", "macros", "rt", "rt-multi-thread"] }

qlog = { version = "0.12", default-features = false }
regex = { version = "1.9", default-features = false }
tokio = { version = "1", default-features = false, features = ["net", "time", "macros", "rt", "rt-multi-thread"] }
10 changes: 5 additions & 5 deletions neqo-transport/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ license.workspace = true

[dependencies]
# Sync with https://searchfox.org/mozilla-central/source/Cargo.lock 2024-02-08
indexmap = "1.9"
indexmap = { version = "1.9", default-features = false }
log = { version = "0.4", default-features = false }
neqo-common = { path = "../neqo-common" }
neqo-crypto = { path = "../neqo-crypto" }
qlog = "0.12"
smallvec = "1.11"
qlog = { version = "0.12", default-features = false }
smallvec = { version = "1.11", default-features = false }

[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
enum-map = "2.7"
criterion = { version = "0.5", default-features = false, features = ["html_reports"] }
enum-map = { version = "2.7", default-features = false }
test-fixture = { path = "../test-fixture" }

[features]
Expand Down
2 changes: 1 addition & 1 deletion test-fixture/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ neqo-crypto = { path = "../neqo-crypto" }
neqo-http3 = { path = "../neqo-http3" }
neqo-qpack = { path = "../neqo-qpack" }
neqo-transport = { path = "../neqo-transport" }
qlog = "0.12"
qlog = { version = "0.12", default-features = false }

[features]
bench = []

0 comments on commit 4c3ccfd

Please sign in to comment.