Skip to content

Commit 38bc915

Browse files
ZackPiercegj
andauthored
Only pull in tracing-subscriber for tests, examples, and CLI binary (osohq#1622)
Co-authored-by: Gabe Jackson <[email protected]>
1 parent 31bf2d5 commit 38bc915

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

languages/rust/oso/Cargo.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ oso-derive = { path = "../oso-derive", version = "=0.26.2", optional = true }
3434
polar-core = { path = "../../../polar-core", version = "=0.26.2" }
3535
thiserror = "1.0.30"
3636
tracing = { version = "0.1.29", features = ["log"] }
37-
tracing-subscriber = { version = "0.3.1", default-features = false, features = [
38-
"fmt",
39-
] }
4037

4138
anyhow = { version = "1.0.44", optional = true }
4239
clap = { version = "2.33.3", optional = true }
4340
lazy_static = "1.4.0"
4441
rustyline = { version = "9.0.0", optional = true }
4542
rustyline-derive = { version = "0.5.0", optional = true }
43+
tracing-subscriber = { version = "0.3.1", optional = true, default-features = false, features = [
44+
"fmt",
45+
] }
4646

4747
uuid-06 = { package = "uuid", version = "0.6.5", optional = true }
4848
uuid-07 = { package = "uuid", version = ">=0.7.0, <0.9.0", optional = true }
@@ -54,8 +54,11 @@ criterion = "0.3.5"
5454
oso-derive = { path = "../oso-derive", version = "=0.26.2" }
5555
static_assertions = "1.1.0"
5656
tempfile = "3.2.0"
57+
tracing-subscriber = { version = "0.3.1", default-features = false, features = [
58+
"fmt",
59+
] }
5760

5861
[features]
59-
cli = ["rustyline", "rustyline-derive", "anyhow", "clap"]
62+
cli = ["rustyline", "rustyline-derive", "anyhow", "clap", "tracing-subscriber"]
6063
default = ["derive"]
6164
derive = ["oso-derive"]

0 commit comments

Comments
 (0)