8000 Remove `async-std` support by kanarus · Pull Request #448 · ohkami-rs/ohkami · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove async-std support #448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2025 8000
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tasks:
deps:
- task: test:tls
- task: test:no_rt
- for: [tokio, async-std, smol, nio, glommio, lambda, worker]
- for: [tokio, smol, nio, glommio, lambda, worker]
task: test:rt
vars: { rt: '{{.ITEM}}' }
test:other:
Expand All @@ -32,7 +32,7 @@ tasks:
deps:
- task: check:tls
- task: check:no_rt
- for: [tokio, async-std, smol, nio, glommio, lambda]
- for: [tokio, smol, nio, glommio, lambda]
task: check:rt-native_target
vars: { rt: '{{.ITEM}}' }
- task: check:rt_worker
Expand All @@ -43,7 +43,7 @@ tasks:
cmds:
- cd benches && cargo bench --features DEBUG --no-run
- cd benches_rt/vs_actix-web && cargo check
- for: [tokio, async-std, smol, nio, glommio]
- for: [tokio, smol, nio, glommio]
cmd: cd benches_rt/{{.ITEM}} && cargo check

bench:
Expand Down
18 changes: 0 additions & 18 deletions benches_rt/async-std/Cargo.toml

This file was deleted.

9 changes: 0 additions & 9 deletions benches_rt/async-std/src/bin/param.rs

This file was deleted.

7 changes: 0 additions & 7 deletions ohkami/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ serde_json = { workspace = true }

# runtimes
tokio = { version = "1", optional = true }
async-std = { version = "1", optional = true }
smol = { version = "2", optional = true }
nio = { version = "0.0", optional = true }
glommio = { version = "0.9", optional = true }
Expand Down Expand Up @@ -57,11 +56,6 @@ rt_tokio = ["__rt_native__",
"tokio/io-util",
"mews?/rt_tokio",
]
rt_async-std = ["__rt_native__",
"dep:async-std",
"dep:futures-util","futures-util/io",
"mews?/rt_async-std",
]
rt_smol = ["__rt_native__",
"dep:smol",
"dep:futures-util","futures-util/io",
Expand Down Expand Up @@ -106,7 +100,6 @@ DEBUG = ["tokio?/rt-multi-thread", "tokio?/macros"]
# "ws",
# "tls",
# "rt_tokio",
# #"rt_async-std",
# #"rt_smol",
# #"rt_nio",
# #"rt_glommio",
Expand Down
11 changes: 5 additions & 6 deletions ohkami/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@


#[cfg(any(
all(feature="rt_tokio", any(feature="rt_async-std", feature="rt_smol", feature="rt_nio", feature="rt_glommio", feature="rt_worker" )),
all(feature="rt_async-std", any(feature="rt_smol", feature="rt_nio", feature="rt_glommio", feature="rt_worker", feature="rt_tokio" )),
all(feature="rt_smol", any(feature="rt_nio", feature="rt_glommio", feature="rt_worker", feature="rt_tokio", feature="rt_async-std")),
all(feature="rt_nio", any(feature="rt_glommio", feature="rt_worker", feature="rt_tokio", feature="rt_async-std", feature="rt_smol" )),
all(feature="rt_glommio", any(feature="rt_worker", feature="rt_tokio", feature="rt_async-std", feature="rt_smol", feature="rt_nio" )),
all(feature="rt_worker", any(feature="rt_tokio", feature="rt_async-std", feature="rt_smol", feature="rt_nio", feature="rt_glommio" )),
all(feature="rt_tokio", any(feature="rt_smol", feature="rt_nio", feature="rt_glommio", feature="rt_worker" )),
all(feature="rt_smol", any(feature="rt_nio", feature="rt_glommio", feature="rt_worker", feature="rt_tokio" )),
all(feature="rt_nio", any(feature="rt_glommio", feature="rt_worker", feature="rt_tokio", feature="rt_smol" )),
all(feature="rt_glommio", any(feature="rt_worker", feature="rt_tokio", feature="rt_smol", feature="rt_nio" )),
all(feature="rt_worker", any(feature="rt_tokio", feature="rt_smol", feature="rt_nio", feature="rt_glommio" )),
))] compile_error! {"
Can't activate multiple `rt_*` features at once!
"}
Expand Down
0