Skip to content

Commit 02788da

Browse files
authored
chore(tonic): Move tokio macros feature behind tls feature (#1482)
1 parent 7b2b0ee commit 02788da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tonic/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ codegen = ["dep:async-trait"]
2727
gzip = ["dep:flate2"]
2828
default = ["transport", "codegen", "prost"]
2929
prost = ["dep:prost"]
30-
tls = ["dep:rustls-pemfile", "transport", "dep:tokio-rustls", "dep:rustls", "tokio/rt"]
30+
tls = ["dep:rustls-pemfile", "transport", "dep:tokio-rustls", "dep:rustls", "tokio/rt", "tokio/macros"]
3131
tls-roots = ["tls-roots-common", "dep:rustls-native-certs"]
3232
tls-roots-common = ["tls"]
3333
tls-webpki-roots = ["tls-roots-common", "dep:webpki-roots"]
@@ -70,7 +70,7 @@ async-trait = {version = "0.1.13", optional = true}
7070
h2 = {version = "0.3.17", optional = true}
7171
hyper = {version = "0.14.14", features = ["full"], optional = true}
7272
hyper-timeout = {version = "0.4", optional = true}
73-
tokio = {version = "1.0.1", features = ["net", "time", "macros"], optional = true}
73+
tokio = {version = "1.0.1", features = ["net", "time"], optional = true}
7474
tokio-stream = "0.1"
7575
tower = {version = "0.4.7", default-features = false, features = ["balance", "buffer", "discover", "limit", "load", "make", "timeout", "util"], optional = true}
7676
axum = {version = "0.6.9", default_features = false, optional = true}

0 commit comments

Comments
 (0)