Cargo Features

[dependencies]
async-stm = { version = "0.5.0", default-features = false, features = ["queues", "unstable"] }
default = queues

The queues feature is set by default whenever async-stm is added without default-features = false somewhere in the dependency tree.

queues default

Affects async-stm::queues

unstable

For running benchmarks, which require nightly. Unfortunately tests fail on nightly since rustc 1.61.0-nightly (8769f4ef2 2022-03-02) during the linking phase. They work on rustc 1.61.0-nightly (532d3cda9 2022-02-23), but the lock_api 0.4.7 fails on that one. Luckily the build and tests both work on stable, so if we reserve nightly for benches, it should be fine. Meanwhile if we use nightly, we can use cargo +stable test to run tests, and cargo --features "unstable" bench to run benches. TODO: Move benchmarks under the benches directory.