From e03ae442fc4647f7401e1e200155b82e5b8f685e Mon Sep 17 00:00:00 2001 From: Jonathan Woollett-Light Date: Wed, 29 Nov 2023 13:14:30 +0000 Subject: [PATCH] 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 --- src/utils/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/Cargo.toml b/src/utils/Cargo.toml index 18e8956cb56..631e7cdf7c3 100644 --- a/src/utils/Cargo.toml +++ b/src/utils/Cargo.toml @@ -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 = []