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 `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]>
  • Loading branch information
Jonathan Woollett-Light committed Nov 30, 2023
1 parent 0727ff6 commit 3db68a1
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 3db68a1

Please sign in to comment.