Skip to content

Commit 07921c9

Browse files
roypatzulinx86
authored andcommitted
chore: run cargo-sort
we picked up a new version of it through the devctr upgrade, and apparently it has _opinions_. Signed-off-by: Patrick Roy <[email protected]>
1 parent a6ef857 commit 07921c9

File tree

10 files changed

+55
-45
lines changed

10 files changed

+55
-45
lines changed

Cargo.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ members = ["src/*"]
44
# for the gnu target, and the jailer needs a statically compiled binary to work correctly.
55
# See https://github.com/firecracker-microvm/firecracker/commit/3bf285c8f8a815149923c562dd7edaffcaf10c4e
66
# and https://github.com/firecracker-microvm/firecracker/issues/2102
7-
default-members = ["src/clippy-tracing", "src/cpu-template-helper", "src/firecracker", "src/rebase-snap", "src/seccompiler", "src/snapshot-editor", "src/acpi-tables"]
7+
default-members = [
8+
"src/clippy-tracing",
9+
"src/cpu-template-helper",
10+
"src/firecracker",
11+
"src/rebase-snap",
12+
"src/seccompiler",
13+
"src/snapshot-editor",
14+
"src/acpi-tables",
15+
]
816
resolver = "2"
917

1018
[workspace.lints.rust]

src/acpi-tables/Cargo.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
[package]
22
name = "acpi_tables"
33
version = "0.1.0"
4-
authors = ["The Cloud Hypervisor Authors", "Amazon Firecracker team <[email protected]>"]
4+
authors = [
5+
"The Cloud Hypervisor Authors",
6+
"Amazon Firecracker team <[email protected]>",
7+
]
58
edition = "2024"
69
license = "Apache-2.0"
10+
11+
[lib]
12+
bench = false
713
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
814

915
[dependencies]
@@ -12,8 +18,5 @@ thiserror = "2.0.12"
1218
vm-memory = { version = "0.16.1", features = ["backend-mmap", "backend-bitmap"] }
1319
zerocopy = { version = "0.8.25", features = ["derive"] }
1420

15-
[lib]
16-
bench = false
17-
1821
[lints]
1922
workspace = true

src/cpu-template-helper/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ license = "Apache-2.0"
99
name = "cpu-template-helper"
1010
bench = false
1111

12+
[features]
13+
tracing = ["log-instrument", "vmm/tracing"]
14+
1215
[dependencies]
1316
clap = { version = "4.5.38", features = ["derive", "string"] }
1417
displaydoc = "0.2.5"
@@ -21,8 +24,5 @@ thiserror = "2.0.12"
2124
vmm = { path = "../vmm" }
2225
vmm-sys-util = "0.12.1"
2326

24-
[features]
25-
tracing = ["log-instrument", "vmm/tracing"]
26-
2727
[lints]
2828
workspace = true

src/firecracker/Cargo.toml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,23 @@ description = "Firecracker enables you to deploy workloads in lightweight virtua
88
homepage = "https://firecracker-microvm.github.io/"
99
license = "Apache-2.0"
1010

11+
[lib]
12+
bench = false
13+
1114
[[bin]]
1215
name = "firecracker"
1316
bench = false
1417

15-
[lib]
16-
bench = false
18+
[features]
19+
tracing = ["log-instrument", "utils/tracing", "vmm/tracing"]
20+
gdb = ["vmm/gdb"]
1721

1822
[dependencies]
1923
displaydoc = "0.2.5"
2024
event-manager = "0.4.0"
2125
libc = "0.2.172"
2226
log-instrument = { path = "../log-instrument", optional = true }
2327
micro_http = { git = "https://github.com/firecracker-microvm/micro-http" }
24-
2528
serde = { version = "1.0.219", features = ["derive"] }
2629
serde_derive = "1.0.136"
2730
serde_json = "1.0.140"
@@ -31,6 +34,11 @@ utils = { path = "../utils" }
3134
vmm = { path = "../vmm" }
3235
vmm-sys-util = { version = "0.12.1", features = ["with-serde"] }
3336

37+
[build-dependencies]
38+
seccompiler = { path = "../seccompiler" }
39+
serde = { version = "1.0.219" }
40+
serde_json = "1.0.140"
41+
3442
[dev-dependencies]
3543
cargo_toml = "0.22.1"
3644
libc = "0.2.172"
@@ -40,15 +48,6 @@ regex = { version = "1.11.1", default-features = false, features = ["std", "unic
4048
serde = { version = "1.0.219", features = ["derive"] }
4149
userfaultfd = "0.8.1"
4250

43-
[build-dependencies]
44-
seccompiler = { path = "../seccompiler" }
45-
serde = { version = "1.0.219" }
46-
serde_json = "1.0.140"
47-
48-
[features]
49-
tracing = ["log-instrument", "utils/tracing", "vmm/tracing"]
50-
gdb = ["vmm/gdb"]
51-
5251
[lints]
5352
workspace = true
5453

src/jailer/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ license = "Apache-2.0"
1111
name = "jailer"
1212
bench = false
1313

14+
[features]
15+
tracing = ["log-instrument", "utils/tracing"]
16+
1417
[dependencies]
1518
libc = "0.2.172"
1619
log-instrument = { path = "../log-instrument", optional = true }
@@ -20,8 +23,5 @@ vmm-sys-util = "0.12.1"
2023

2124
utils = { path = "../utils" }
2225

23-
[features]
24-
tracing = ["log-instrument", "utils/tracing"]
25-
2626
[lints]
2727
workspace = true

src/log-instrument/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ license = "Apache-2.0"
99
[lib]
1010
bench = false
1111

12+
[dependencies]
13+
log = "0.4.27"
14+
log-instrument-macros = { path = "../log-instrument-macros" }
15+
16+
[dev-dependencies]
17+
env_logger = "0.11.8"
18+
1219
[[example]]
1320
name = "one"
1421

@@ -27,12 +34,5 @@ name = "five"
2734
[[example]]
2835
name = "six"
2936

30-
[dependencies]
31-
log = "0.4.27"
32-
log-instrument-macros = { path = "../log-instrument-macros" }
33-
34-
[dev-dependencies]
35-
env_logger = "0.11.8"
36-
3737
[lints]
3838
workspace = true

src/rebase-snap/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ license = "Apache-2.0"
99
name = "rebase-snap"
1010
bench = false
1111

12+
[features]
13+
tracing = ["log-instrument", "utils/tracing"]
14+
1215
[dependencies]
1316
displaydoc = "0.2.5"
1417
libc = "0.2.172"
@@ -18,8 +21,5 @@ vmm-sys-util = "0.12.1"
1821

1922
utils = { path = "../utils" }
2023

21-
[features]
22-
tracing = ["log-instrument", "utils/tracing"]
23-
2424
[lints]
2525
workspace = true

src/snapshot-editor/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ license = "Apache-2.0"
99
name = "snapshot-editor"
1010
bench = false
1111

12+
[features]
13+
tracing = ["log-instrument", "fc_utils/tracing", "vmm/tracing"]
14+
1215
[dependencies]
1316
clap = { version = "4.5.38", features = ["derive", "string"] }
1417
displaydoc = "0.2.5"
@@ -24,8 +27,5 @@ vmm-sys-util = "0.12.1"
2427
[target.'cfg(target_arch = "aarch64")'.dependencies]
2528
clap-num = "1.2.0"
2629

27-
[features]
28-
tracing = ["log-instrument", "fc_utils/tracing", "vmm/tracing"]
29-
3030
[lints]
3131
workspace = true

src/utils/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ license = "Apache-2.0"
88
[lib]
99
bench = false
1010

11+
[features]
12+
tracing = ["log-instrument"]
13+
1114
[dependencies]
1215
displaydoc = "0.2.5"
1316
libc = "0.2.172"
1417
log-instrument = { path = "../log-instrument", optional = true }
1518
thiserror = "2.0.12"
1619

17-
[features]
18-
tracing = ["log-instrument"]
19-
2020
[lints]
2121
workspace = true

src/vmm/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ license = "Apache-2.0"
88
[lib]
99
bench = false
1010

11+
[features]
12+
default = []
13+
tracing = ["log-instrument"]
14+
gdb = ["arrayvec", "gdbstub", "gdbstub_arch"]
15+
1116
[dependencies]
1217
acpi_tables = { path = "../acpi-tables" }
13-
aes-gcm = { version = "0.10.1", default-features = false, features = ["aes"] }
18+
aes-gcm = { version = "0.10.1", default-features = false, features = ["aes"] }
1419
arrayvec = { version = "0.7.6", optional = true }
1520
aws-lc-rs = { version = "1.13.1", features = ["bindgen"] }
1621
base64 = "0.22.1"
@@ -54,11 +59,6 @@ device_tree = "1.1.0"
5459
itertools = "0.14.0"
5560
proptest = { version = "1.6.0", default-features = false, features = ["std"] }
5661

57-
[features]
58-
default = []
59-
tracing = ["log-instrument"]
60-
gdb = ["arrayvec", "gdbstub", "gdbstub_arch"]
61-
6262
[[bench]]
6363
name = "cpu_templates"
6464
harness = false

0 commit comments

Comments
 (0)