Skip to content

Commit

Permalink
fix: Fix optional dependency issue
Browse files Browse the repository at this point in the history
When running `cargo build --features tracing` with `src/utils`
instrumented errors are produced due to the optional dependency not
being enabled. This 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]>
  • Loading branch information
Jonathan Woollett-Light committed Nov 29, 2023
1 parent 2c512a9 commit 4749500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ versionize = "0.1.10"
versionize_derive = "0.1.6"
vmm-sys-util = "0.11.2"
vm-memory = { version = "0.13.0", features = ["backend-mmap", "backend-bitmap"] }
log-instrument = { path = "../log-instrument", optional = true }
log-instrument = { path = "../log-instrument" }

[dev-dependencies]
serde_json = "1.0.99"

[features]
tracing = ["log-instrument"]
tracing = []

0 comments on commit 4749500

Please sign in to comment.