mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-16 16:25:08 +00:00
Remove more traces of async-std
This commit is contained in:
committed by
Benjamin Saunders
parent
d845f4009d
commit
0e5834ca32
@@ -27,7 +27,7 @@ jobs:
|
||||
# | paste -sd ',' -
|
||||
run: |
|
||||
cargo llvm-cov \
|
||||
--features="arbitrary,async-io,async-std,aws-lc-rs,bloom,direct-log,fast-apple-datapath,futures-io,json-output,lock_tracking,log,platform-verifier,qlog,ring,runtime-async-std,runtime-smol,runtime-tokio,rustls,rustls-aws-lc-rs,rustls-log,rustls-ring,serde,serde_json,smol,tracing" \
|
||||
--features="arbitrary,async-io,aws-lc-rs,bloom,direct-log,fast-apple-datapath,futures-io,json-output,lock_tracking,log,platform-verifier,qlog,ring,runtime-smol,runtime-tokio,rustls,rustls-aws-lc-rs,rustls-log,rustls-ring,serde,serde_json,smol,tracing" \
|
||||
--workspace --lcov --output-path lcov.info
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v5
|
||||
|
||||
@@ -15,7 +15,6 @@ categories = ["network-programming", "asynchronous"]
|
||||
anyhow = "1.0.22"
|
||||
arbitrary = { version = "1.0.1", features = ["derive"] }
|
||||
async-io = "2"
|
||||
async-std = "1.11"
|
||||
assert_matches = "1.1"
|
||||
aws-lc-rs = { version = "1.9", default-features = false }
|
||||
bencher = "0.1.5"
|
||||
|
||||
+1
-1
@@ -119,4 +119,4 @@ required-features = ["rustls-ring"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
# all non-default features except fips (cannot build on docs.rs environment)
|
||||
features = ["lock_tracking", "rustls-aws-lc-rs", "rustls-ring", "runtime-tokio", "runtime-async-std", "runtime-smol", "log", "rustls-log"]
|
||||
features = ["lock_tracking", "rustls-aws-lc-rs", "rustls-ring", "runtime-tokio", "runtime-smol", "log", "rustls-log"]
|
||||
|
||||
@@ -158,9 +158,8 @@ impl<MakeFut, Fut> Debug for UdpPollHelper<MakeFut, Fut> {
|
||||
/// Automatically select an appropriate runtime from those enabled at compile time
|
||||
///
|
||||
/// If `runtime-tokio` is enabled and this function is called from within a Tokio runtime context,
|
||||
/// then `TokioRuntime` is returned. Otherwise, if `runtime-async-std` is enabled, `AsyncStdRuntime`
|
||||
/// is returned. Otherwise, if `runtime-smol` is enabled, `SmolRuntime` is returned.
|
||||
/// Otherwise, `None` is returned.
|
||||
/// then `TokioRuntime` is returned. Otherwise, if `runtime-smol` is enabled, `SmolRuntime` is
|
||||
/// returned. Otherwise, `None` is returned.
|
||||
#[allow(clippy::needless_return)] // Be sure we return the right thing
|
||||
pub fn default_runtime() -> Option<Arc<dyn Runtime>> {
|
||||
#[cfg(feature = "runtime-tokio")]
|
||||
|
||||
Reference in New Issue
Block a user