Cargo Features

[dependencies]
futures-locks-pre = { version = "0.5.1-pre", default-features = false, features = ["nightly-docs", "tokio"] }
default = tokio

The tokio feature is set by default whenever futures-locks-pre is added without default-features = false somewhere in the dependency tree.

nightly-docs

For building documentation only; no functional change to the library.

tokio default = tokio_

Enable methods that require a Tokio executor.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tokio_ tokio

Enables tokio ^0.2.6

features, dependencies, dev-dependencies, and build-dependencies all share the same namespace. To avoid a clash with the tokio feature, rename the tokio dev-dependency. See https://github.com/rust-lang/cargo/issues/4866.