diff --git a/apis/c++/node/Cargo.toml b/apis/c++/node/Cargo.toml index 5d1ce54f..595a7548 100644 --- a/apis/c++/node/Cargo.toml +++ b/apis/c++/node/Cargo.toml @@ -8,6 +8,10 @@ edition = "2021" [lib] crate-type = ["staticlib"] +[features] +default = ["tracing-subscriber"] +tracing-subscriber = ["dora-node-api/tracing-subscriber"] + [dependencies] cxx = "1.0.73" dora-node-api = { workspace = true } diff --git a/apis/c/node/Cargo.toml b/apis/c/node/Cargo.toml index 7579960f..3d95d245 100644 --- a/apis/c/node/Cargo.toml +++ b/apis/c/node/Cargo.toml @@ -9,11 +9,14 @@ license = "Apache-2.0" [lib] crate-type = ["staticlib"] +[features] +default = ["tracing-subscriber"] +tracing-subscriber = ["dora-node-api/tracing-subscriber"] + [dependencies] eyre = "0.6.8" flume = "0.10.14" tracing = "0.1.33" [dependencies.dora-node-api] -default-features = false -path = "../../rust/node" +workspace = true