mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-25 09:46:49 +00:00
Merge pull request #804 from async-rs/tokio02-feature
This commit is contained in:
commit
0897b9184a
3 changed files with 22 additions and 1 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -110,6 +110,17 @@ jobs:
|
||||||
command: check
|
command: check
|
||||||
args: --no-default-features --features alloc --target thumbv7m-none-eabi -Z avoid-dev-deps
|
args: --no-default-features --features alloc --target thumbv7m-none-eabi -Z avoid-dev-deps
|
||||||
|
|
||||||
|
check_tokio_02_feature:
|
||||||
|
name: Check tokio02 feature
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: check tokio02
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: check
|
||||||
|
args: --all --features tokio02
|
||||||
|
|
||||||
cross:
|
cross:
|
||||||
name: Cross compile
|
name: Cross compile
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -51,6 +51,7 @@ alloc = [
|
||||||
"futures-core/alloc",
|
"futures-core/alloc",
|
||||||
"pin-project-lite",
|
"pin-project-lite",
|
||||||
]
|
]
|
||||||
|
tokio02 = ["smol/tokio02"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-attributes = { version = "1.1.1", optional = true }
|
async-attributes = { version = "1.1.1", optional = true }
|
||||||
|
|
|
@ -214,6 +214,15 @@
|
||||||
//! features = ["attributes"]
|
//! features = ["attributes"]
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
|
//! Compatibility with the `tokio` runtime is possible using the `tokio02`
|
||||||
|
//! Cargo feature:
|
||||||
|
//!
|
||||||
|
//! ```toml
|
||||||
|
//! [dependencies.async-std]
|
||||||
|
//! version = "1.6.0"
|
||||||
|
//! features = ["tokio02"]
|
||||||
|
//! ```
|
||||||
|
//!
|
||||||
//! Additionally it's possible to only use the core traits and combinators by
|
//! Additionally it's possible to only use the core traits and combinators by
|
||||||
//! only enabling the `std` Cargo feature:
|
//! only enabling the `std` Cargo feature:
|
||||||
//!
|
//!
|
||||||
|
|
Loading…
Reference in a new issue