chore: disable default features of tracing dependencies (#1144)

This avoids relatively heavy dependencies (`tracing-attributes`, `syn`,
etc.) in some cases.
This commit is contained in:
Taiki Endo 2020-12-19 06:22:52 +09:00 committed by Eliza Weisman
parent 2003af6815
commit 8cbc00e731
5 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ traced-error = []
[dependencies]
tracing-subscriber = { path = "../tracing-subscriber", version = "0.2.7", default-features = false, features = ["registry", "fmt"] }
tracing = { path = "../tracing", version = "0.1.12"}
tracing = { path = "../tracing", version = "0.1.12", default-features = false, features = ["std"] }
[badges]
maintenance = { status = "experimental" }

View File

@ -26,7 +26,7 @@ smallvec = ["tracing-subscriber/smallvec"]
[dependencies]
tracing-subscriber = { path = "../tracing-subscriber", version = "0.2.3", default-features = false, features = ["registry", "fmt"] }
tracing = { path = "../tracing", version = "0.1.12"}
tracing = { path = "../tracing", version = "0.1.12", default-features = false, features = ["std"] }
lazy_static = "1.3.0"
[dev-dependencies]

View File

@ -23,7 +23,7 @@ default = ["tracing-log"]
[dependencies]
opentelemetry = { version = "0.12", default-features = false, features = ["trace"] }
tracing = { path = "../tracing", version = "0.1" }
tracing = { path = "../tracing", version = "0.1", default-features = false, features = ["std"] }
tracing-core = { path = "../tracing-core", version = "0.1" }
tracing-subscriber = { path = "../tracing-subscriber", version = "0.2", default-features = false, features = ["registry"] }
tracing-log = { path = "../tracing-log", version = "0.1", default-features = false, optional = true }

View File

@ -34,7 +34,7 @@ json = ["tracing-serde", "serde", "serde_json"]
tracing-core = { path = "../tracing-core", version = "0.1.17" }
# only required by the filter feature
tracing = { optional = true, path = "../tracing", version = "0.1" }
tracing = { optional = true, path = "../tracing", version = "0.1", default-features = false, features = ["std"] }
matchers = { optional = true, version = "0.0.1" }
regex = { optional = true, version = "1", default-features = false, features = ["std"] }
smallvec = { optional = true, version = "1" }

View File

@ -24,7 +24,7 @@ tower-make = [
]
[dependencies]
tracing = { path = "../tracing", version = "0.1"}
tracing = { path = "../tracing", version = "0.1", default-features = false, features = ["std"] }
tracing-futures = { version = "0.2.1", path = "../tracing-futures", features = ["std-future"] }
futures = "0.3"
tower-service = "0.3"