diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55c32e7..f8bd9f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,4 +64,4 @@ jobs: run: cargo fmt --all -- --check - name: Docs - run: cargo doc --features docs,unstable + run: cargo doc --features docs diff --git a/.travis.yml b/.travis.yml index 0249f8e..bb3c836 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,7 +50,7 @@ matrix: rust: nightly os: linux script: - - cargo doc --features docs,unstable + - cargo doc --features docs - name: book rust: nightly diff --git a/README.md b/README.md index 978e1c0..ae129aa 100644 --- a/README.md +++ b/README.md @@ -111,13 +111,13 @@ git clone git@github.com:async-rs/async-std.git && cd async-std Generate docs: ``` -cargo doc --features docs.rs --open +cargo +nightly doc --features docs --open ``` Check out the [examples](examples). To run an example: ``` -cargo run --example hello-world +cargo +nightly run --example hello-world ``` ## Contributing diff --git a/src/task/mod.rs b/src/task/mod.rs index 9e92f35..15eb7b1 100644 --- a/src/task/mod.rs +++ b/src/task/mod.rs @@ -25,7 +25,7 @@ #[doc(inline)] pub use std::task::{Context, Poll, Waker}; -#[cfg(feature = "unstable")] +#[cfg(any(feature = "unstable", feature = "docs"))] #[cfg_attr(feature = "docs", doc(cfg(unstable)))] #[doc(inline)] pub use async_macros::ready;