Skip to content

Commit b5e2110

Browse files
jbryoshuawuyts
authored andcommitted
Create an enabled-by-default async_std feature
currently async-std is mandatory so this is temporarily just a flag
1 parent 1b620f9 commit b5e2110

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ features = ["docs"]
1616
rustdoc-args = ["--cfg", "feature=\"docs\""]
1717

1818
[features]
19-
default = []
19+
default = ["async_std"]
2020
docs = ["unstable"]
2121
unstable = []
2222
hyperium_http = ["http"]
23+
async_std = [] # "async-std" when it is not default
2324

2425
[dependencies]
2526
# Note(yoshuawuyts): used for async_std's `channel` only; use "core" once possible.
27+
# features: async_std
2628
async-std = { version = "1.4.0", features = ["unstable"] }
2729

2830
# features: hyperium/http

0 commit comments

Comments
 (0)