Skip to content

Commit fb4f514

Browse files
committed
chore: s/default_features/default-features (#502)
Apparently `default_features` is deprecated and will be removed in Rust 2024. So fix that, I guess.
1 parent 0a2f613 commit fb4f514

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ members = [
1616
resolver = "2"
1717

1818
[workspace.dependencies]
19-
thiserror = { version = "2.0.9", default_features = false }
19+
thiserror = { version = "2.0.9", default-features = false }
2020

2121
[package]
2222
name = "mycelium-kernel"
@@ -46,7 +46,7 @@ mycelium-pci = { path = "pci" }
4646
mycelium-util = { path = "util" }
4747
mycelium-trace = { path = "trace", features = ["embedded-graphics"] }
4848
rand_xoshiro = "0.6"
49-
rand = { version = "0.8", default_features = false }
49+
rand = { version = "0.8", default-features = false }
5050
rlibc = "1.0"
5151
# NOTE FOR FUTURE ELIZAS WHO ARE MESSING WITH THIS: the bootloader crate's build
5252
# script is not that good, and breaks if you put this in `cfg(...).dependencies`
@@ -59,7 +59,7 @@ futures-util = { version = "0.3", default-features = false, features = ["async-a
5959
# Miri-compatible version of `once_cell`.
6060
once_cell = { version = "1.15.0", default-features = false }
6161
pc-keyboard = "0.6.1"
62-
thingbuf = { version = "0.1.4", default_features = false, features = ["static"] }
62+
thingbuf = { version = "0.1.4", default-features = false, features = ["static"] }
6363

6464
[dev-dependencies]
6565
mycotest = { path = "mycotest", features = ["runner"] }
@@ -70,7 +70,7 @@ yaxpeax-x86 = { version = "1.0.0", default-features = false, features = ["fmt"]
7070
yaxpeax-arch = { version = "0.2.0", default-features = false }
7171

7272
[dependencies.tracing]
73-
default_features = false
73+
default-features = false
7474
features = ["attributes", "alloc"]
7575
git = "https://github.com/tokio-rs/tracing"
7676

alloc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bump = []
1313
buddy = ["hal-core", "mycelium-util", "tracing"]
1414

1515
[dependencies]
16-
tracing = { git = "https://github.com/tokio-rs/tracing", default_features = false, optional = true }
16+
tracing = { git = "https://github.com/tokio-rs/tracing", default-features = false, optional = true }
1717
mycelium-util = { path = "../util", optional = true }
1818
hal-core = { path = "../hal-core", optional = true }
1919

hal-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rust-version = "1.81.0"
99
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1010

1111
[dependencies]
12-
tracing = { git = "https://github.com/tokio-rs/tracing", default_features = false }
12+
tracing = { git = "https://github.com/tokio-rs/tracing", default-features = false }
1313
thiserror = { workspace = true }
1414
maitake-sync = { path = "../maitake-sync", default-features = false }
1515
mycelium-util = { path = "../util" }

hal-x86_64/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ maitake = { path = "../maitake" }
1818
mycelium-util = { path = "../util" }
1919
mycelium-trace = { path = "../trace" }
2020
mycotest = { path = "../mycotest"}
21-
rand_core = { version = "0.6.4", default_features = false, optional = true }
21+
rand_core = { version = "0.6.4", default-features = false, optional = true }
2222
raw-cpuid = "10.6.0"
2323
thiserror = { workspace = true }
24-
tracing = { git = "https://github.com/tokio-rs/tracing", default_features = false, features = ["attributes"] }
24+
tracing = { git = "https://github.com/tokio-rs/tracing", default-features = false, features = ["attributes"] }
2525
volatile = { version = "0.4.5", features = ["unstable"] }
2626

2727
[dev-dependencies]

maitake-sync/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ cordyceps = { version = "0.3.0", path = "../cordyceps" }
3535
critical-section = { version = "1.1", optional = true }
3636
pin-project = "1"
3737
portable-atomic = "1.2"
38-
tracing = { version = "0.1", default_features = false, optional = true }
38+
tracing = { version = "0.1", default-features = false, optional = true }
3939

4040
# this is a normal dependency, rather than a dev dependency, so that
4141
# `maitake-sync` may be used in other crates' loom tests as well (but only when
4242
# the cfg is enabled).
4343
[target.'cfg(loom)'.dependencies]
44-
loom = { version = "0.7", default_features = false }
45-
tracing = { version = "0.1", default_features = false }
44+
loom = { version = "0.7", default-features = false }
45+
tracing = { version = "0.1", default-features = false }
4646

4747
[dev-dependencies]
4848
futures-util = "0.3"
4949
futures = "0.3"
5050
tokio-test = "0.4"
51-
tracing = { version = "0.1", default_features = false, features = ["std"] }
51+
tracing = { version = "0.1", default-features = false, features = ["std"] }
5252
tracing-subscriber = { version = "0.3.11", features = ["fmt", "env-filter"] }
5353

5454
[target.'cfg(not(loom))'.dev-dependencies]

maitake/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ portable-atomic = "1.2"
4646

4747
[dependencies.tracing-02]
4848
package = "tracing"
49-
default_features = false
49+
default-features = false
5050
git = "https://github.com/tokio-rs/tracing"
5151
optional = true
5252

5353
[dependencies.tracing-01]
5454
package = "tracing"
55-
default_features = false
55+
default-features = false
5656
version = "0.1.35"
5757
optional = true
5858

@@ -69,7 +69,7 @@ proptest = "1"
6969

7070
[target.'cfg(loom)'.dev-dependencies]
7171
loom = { version = "0.7", features = ["futures", "checkpoint"] }
72-
tracing_01 = { package = "tracing", version = "0.1", default_features = false }
72+
tracing_01 = { package = "tracing", version = "0.1", default-features = false }
7373
tracing_subscriber_03 = { package = "tracing-subscriber", version = "0.3.11", features = ["fmt"] }
7474

7575
[package.metadata.docs.rs]

pci/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ mycelium-bitfield = { path = "../bitfield" }
2121
hal-x86_64 = { path = "../hal-x86_64" }
2222
volatile = "0.4.5"
2323
pci-ids = "0.2.5"
24-
hex = { version = "0.4.3", default_features = false }
24+
hex = { version = "0.4.3", default-features = false }
2525

2626
[dependencies.tracing]
27-
default_features = false
27+
default-features = false
2828
features = ["attributes", "alloc"]
2929
git = "https://github.com/tokio-rs/tracing"
3030

trace/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ default = ["embedded-graphics",]
1313

1414
[dependencies]
1515
maitake = { path = "../maitake" }
16-
tracing-core = {git = "https://github.com/tokio-rs/tracing", default_features = false }
17-
tracing = { git = "https://github.com/tokio-rs/tracing", default_features = false }
16+
tracing-core = {git = "https://github.com/tokio-rs/tracing", default-features = false }
17+
tracing = { git = "https://github.com/tokio-rs/tracing", default-features = false }
1818
hal-core = { path = "../hal-core" }
1919
mycelium-util = { path = "../util" }
2020
embedded-graphics = { version = "0.7", optional = true }

util/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ alloc = ["cordyceps/alloc", "maitake-sync/alloc"]
1414
no-cache-pad = ["cordyceps/no-cache-pad", "maitake-sync/no-cache-pad"]
1515

1616
[dependencies]
17-
tracing = { git = "https://github.com/tokio-rs/tracing", default_features = false, features = ["attributes"] }
17+
tracing = { git = "https://github.com/tokio-rs/tracing", default-features = false, features = ["attributes"] }
1818
cordyceps = { path = "../cordyceps", default-features = false }
1919
mycelium-bitfield = { path = "../bitfield", default-features = false }
2020
maitake-sync = { path = "../maitake-sync", default-features = false }
2121

2222
[dev-dependencies]
2323
proptest = "1"
2424
tracing-subscriber = { git = "https://github.com/tokio-rs/tracing", features = ["fmt", "env-filter"] }
25-
tracing = { git = "https://github.com/tokio-rs/tracing", default_features = false, features = ["attributes", "std"] }
25+
tracing = { git = "https://github.com/tokio-rs/tracing", default-features = false, features = ["attributes", "std"] }
2626

2727
[target.'cfg(loom)'.dependencies]
2828
loom = "0.7"

0 commit comments

Comments
 (0)