Skip to content

Commit e03ae44

Browse files
Jonathan Woollett-LightJonathanWoollett-Light
authored andcommitted
fix: Fix tracing optional dependency issue
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 commit makes the dependency non-optional to fix this, when unneeded the dependency will still be ommited at compile time however this may very slightly increase compile time. Signed-off-by: Jonathan Woollett-Light <[email protected]>
1 parent d8a1705 commit e03ae44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ versionize = "0.1.10"
1818
versionize_derive = "0.1.6"
1919
vmm-sys-util = "0.11.2"
2020
vm-memory = { version = "0.13.0", features = ["backend-mmap", "backend-bitmap"] }
21-
log-instrument = { path = "../log-instrument", optional = true }
21+
log-instrument = { path = "../log-instrument" }
2222

2323
[dev-dependencies]
2424
serde_json = "1.0.99"
2525

2626
[features]
27-
tracing = ["log-instrument"]
27+
tracing = []

0 commit comments

Comments
 (0)