Cargo Features

[dependencies]
oneshot = { version = "0.1.8", default-features = false, features = ["std", "async", "loom"] }
default = async, std

TODO: Remove the default features on next breaking release and make them opt-in.
Because default features are evil

std default

Enables usage of libstd. Adds support for thread blocking receive methods.

Affects errors::RecvTimeoutError, errors::RecvError

async default

Enables async receiving by implementing Future

Affects errors::RecvError

Features from optional dependencies

loom oneshot_loom implicit feature

Enables loom

loom:

Permutation testing for concurrent code