Skip to content

Commit a8c7caa

Browse files
Jonathan Woollett-Lightpb8o
authored andcommitted
build: Propagate tracing feature from all crates
When running `cargo build --features tracing` with `src/utils` instrumented errors are produced due to the `log-instrument` optional dependency not being enabled by the `utils/tracing` feature. This occurs due to crate build order due to not all dependent crates back propagating the `tracing` feature to `src/utils`. This commit fixes this by updating all dependent crates to back propagate the `tracing` feature. Signed-off-by: Jonathan Woollett-Light <[email protected]>
1 parent 77aa06d commit a8c7caa

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/api_server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ vmm = { path = "../vmm" }
2626
libc = "0.2.117"
2727

2828
[features]
29-
tracing = ["log-instrument"]
29+
tracing = ["log-instrument", "utils/tracing", "vmm/tracing"]

src/cpu-template-helper/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ vmm = { path = "../vmm" }
2525
utils = { path = "../utils" }
2626

2727
[features]
28-
tracing = ["log-instrument"]
28+
tracing = ["log-instrument", "vmm/tracing"]

src/jailer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ thiserror = "1.0.50"
2121
utils = { path = "../utils" }
2222

2323
[features]
24-
tracing = ["log-instrument"]
24+
tracing = ["log-instrument", "utils/tracing"]

src/rebase-snap/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ thiserror = "1.0.50"
1818
utils = { path = "../utils" }
1919

2020
[features]
21-
tracing = ["log-instrument"]
21+
tracing = ["log-instrument", "utils/tracing"]

src/seccompiler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ thiserror = "1.0.50"
2727
utils = { path = "../utils" }
2828

2929
[features]
30-
tracing = ["log-instrument"]
30+
tracing = ["log-instrument", "utils/tracing"]

src/snapshot-editor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ fc_utils = { package = "utils", path = "../utils" }
2424
clap-num = "1.0.2"
2525

2626
[features]
27-
tracing = ["log-instrument"]
27+
tracing = ["log-instrument", "fc_utils/tracing", "vmm/tracing"]

0 commit comments

Comments
 (0)