Skip to content

Commit 76e43fa

Browse files
committed
Use stable async-std channels from async 1.9; this fixes the build. Drop the 'unstable' feature.
1 parent d9cef9b commit 76e43fa

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ jobs:
2929
uses: actions-rs/cargo@v1
3030
with:
3131
command: test
32-
args: --features unstable

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,4 @@ description = "Experimental cooperative cancellation for async-std"
1010

1111
[dependencies]
1212
pin-project-lite = "0.1.0"
13-
async-std = "1.0"
14-
15-
[features]
16-
unstable = ["async-std/unstable"]
13+
async-std = "1.9"

src/lib.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@
55
//! Experimental. The library works as is, breaking changes will bump major
66
//! version, but there are no guarantees of long-term support.
77
//!
8-
//! Additionally, this library uses unstable cargo feature feature of `async-std` and, for
9-
//! this reason, should be used like this:
10-
//!
11-
//! ```toml
12-
//! [dependencies.stop-token]
13-
//! version = "0.1.0"
14-
//! features = [ "unstable" ]
15-
//! ```
16-
//!
178
//! # Motivation
189
//!
1910
//! Rust futures come with a build-in cancellation mechanism: dropping a future
@@ -71,7 +62,7 @@ use std::pin::Pin;
7162
use std::task::{Context, Poll};
7263

7364
use async_std::prelude::*;
74-
use async_std::sync::{channel, Receiver, Sender};
65+
use async_std::channel::{self, Receiver, Sender};
7566
use pin_project_lite::pin_project;
7667

7768
enum Never {}

0 commit comments

Comments
 (0)