Skip to content

Commit dc66478

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

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/lib.rs

+19
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,25 @@
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.
2847
2948
#![cfg_attr(feature = "docs", feature(doc_cfg))]
3049
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]

0 commit comments

Comments
 (0)