Skip to content

Commit c59fa5f

Browse files
committed
fix: deprecate async-std-rt feature and document reqwless upgrade blocker
Deprecate the async-std-rt feature with a compile_error! directive since async-std has been discontinued (RUSTSEC-2025-0052). Users should migrate to the smol-rt feature, which is the recommended successor. The reqwless upgrade from 0.13.0 to 0.14.0 is blocked by an embedded-tls/der incompatibility upstream. This keeps atomic-polyfill (RUSTSEC-2023-0089) as a transitive dependency until the upstream fix lands. Closes #126 Relates-to #111
1 parent 36218d7 commit c59fa5f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ embassy-time = { version = "0.3.2", optional = true }
7878
embedded-websocket-embedded-io = { version = "0.1.0", optional = true, default-features = false, features = [
7979
"embedded-io-async",
8080
] }
81+
# Note: reqwless 0.14.0 introduces an embedded-tls/der incompatibility.
82+
# Upgrade blocked until embedded-tls resolves the der 0.8.0 heapless feature gate.
83+
# This keeps atomic-polyfill (RUSTSEC-2023-0089) as a transitive dependency.
8184
reqwless = { version = "0.13.0", optional = true }
8285
reqwest = { version = "0.12.7", optional = true, features = ["json"] }
8386
tokio-tungstenite = { version = "0.24.0", optional = true, features = [
@@ -86,6 +89,7 @@ tokio-tungstenite = { version = "0.24.0", optional = true, features = [
8689
embassy-futures = { version = "0.1.1" }
8790
embedded-nal-async = { version = "0.8.0", optional = true }
8891
actix-rt = { version = "2.10.0", optional = true }
92+
# Deprecated: async-std is discontinued (RUSTSEC-2025-0052). Use smol-rt instead.
8993
async-std = { version = "1.13.0", optional = true }
9094
futures-executor = { version = "0.3.30", optional = true }
9195
futures-timer = { version = "3.0.3", optional = true }

src/asynch/mod.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ async fn wait_seconds(seconds: u64) {
3333
return;
3434
}
3535
#[cfg(feature = "async-std-rt")]
36-
{
37-
async_std::task::sleep(Duration::from_secs(seconds)).await;
38-
return;
39-
}
36+
compile_error!(
37+
"The async-std-rt feature is deprecated. async-std has been discontinued \
38+
(RUSTSEC-2025-0052). Use the smol-rt feature instead, which is the recommended \
39+
successor runtime."
40+
);
4041
#[cfg(feature = "futures-rt")]
4142
{
4243
futures_timer::Delay::new(Duration::from_secs(seconds)).await;

0 commit comments

Comments
 (0)