Skip to content

Commit cd7561e

Browse files
taiki-ehawkw
authored andcommitted
chore: disable default features of tracing dependencies (#1144)
This avoids relatively heavy dependencies (`tracing-attributes`, `syn`, etc.) in some cases.
1 parent 2003af6 commit cd7561e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

tracing-error/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ traced-error = []
3939

4040
[dependencies]
4141
tracing-subscriber = { path = "../tracing-subscriber", version = "0.2.7", default-features = false, features = ["registry", "fmt"] }
42-
tracing = { path = "../tracing", version = "0.1.12"}
42+
tracing = { path = "../tracing", version = "0.1.12", default-features = false, features = ["std"] }
4343

4444
[badges]
4545
maintenance = { status = "experimental" }

tracing-flame/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ smallvec = ["tracing-subscriber/smallvec"]
2626

2727
[dependencies]
2828
tracing-subscriber = { path = "../tracing-subscriber", version = "0.2.3", default-features = false, features = ["registry", "fmt"] }
29-
tracing = { path = "../tracing", version = "0.1.12"}
29+
tracing = { path = "../tracing", version = "0.1.12", default-features = false, features = ["std"] }
3030
lazy_static = "1.3.0"
3131

3232
[dev-dependencies]

tracing-opentelemetry/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ default = ["tracing-log"]
2323

2424
[dependencies]
2525
opentelemetry = { version = "0.12", default-features = false, features = ["trace"] }
26-
tracing = { path = "../tracing", version = "0.1" }
26+
tracing = { path = "../tracing", version = "0.1", default-features = false, features = ["std"] }
2727
tracing-core = { path = "../tracing-core", version = "0.1" }
2828
tracing-subscriber = { path = "../tracing-subscriber", version = "0.2", default-features = false, features = ["registry"] }
2929
tracing-log = { path = "../tracing-log", version = "0.1", default-features = false, optional = true }

tracing-subscriber/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ json = ["tracing-serde", "serde", "serde_json"]
3434
tracing-core = { path = "../tracing-core", version = "0.1.17" }
3535

3636
# only required by the filter feature
37-
tracing = { optional = true, path = "../tracing", version = "0.1" }
37+
tracing = { optional = true, path = "../tracing", version = "0.1", default-features = false, features = ["std"] }
3838
matchers = { optional = true, version = "0.0.1" }
3939
regex = { optional = true, version = "1", default-features = false, features = ["std"] }
4040
smallvec = { optional = true, version = "1" }

tracing-tower/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tower-make = [
2424
]
2525

2626
[dependencies]
27-
tracing = { path = "../tracing", version = "0.1"}
27+
tracing = { path = "../tracing", version = "0.1", default-features = false, features = ["std"] }
2828
tracing-futures = { version = "0.2.1", path = "../tracing-futures", features = ["std-future"] }
2929
futures = "0.3"
3030
tower-service = "0.3"

0 commit comments

Comments
 (0)