Skip to content

Commit 6e5f29f

Browse files
committed
document feature flags
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent dc66478 commit 6e5f29f

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,24 @@ fn main() {
8181
}
8282
```
8383

84+
## Features
85+
86+
`async-std` is strongly commited to following semver. This means your code won't
87+
break unless _you_ decide to upgrade.
88+
89+
However every now and then we come up with something that we think will work
90+
_great_ for `async-std`, and we want to provide a sneak-peek so you can try it
91+
out. This is what we call _"unstable"_ features. You can try out the unstable
92+
features by enabling the `unstable` feature in you `Cargo.toml` file:
93+
94+
```toml
95+
[dependencies]
96+
async-std = { version = "0.99.5", features = ["unstable"] }
97+
```
98+
99+
Just be careful when running these features, as they may change between
100+
versions.
101+
84102
## Take a look around
85103

86104
Clone the repo:

src/lib.rs

-19
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,6 @@
2525
//!
2626
//! See [here](https://github.com/async-rs/async-std/tree/master/examples)
2727
//! for more examples.
28-
//!
29-
//! # Features
30-
//!
31-
//! `async-std` is strongly commited to following semver. This means your code
32-
//! won't break unless _you_ decide to upgrade.
33-
//!
34-
//! However every now and then we come up with something that we think will
35-
//! work _great_ for `async-std`, and we want to provide a sneak-peek so you
36-
//! can try it out. This is what we call _"unstable"_ features. You can try out
37-
//! the unstable features by enabling the `unstable` feature in you `Cargo.toml`
38-
//! file:
39-
//!
40-
//! ```toml
41-
//! [dependencies]
42-
//! async-std = { version = "0.99.5", features = ["unstable"] }
43-
//! ```
44-
//!
45-
//! Just be careful when running these features, as they may change between
46-
//! versions.
4728
4829
#![cfg_attr(feature = "docs", feature(doc_cfg))]
4930
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]

0 commit comments

Comments
 (0)