Cargo Features

[dependencies]
auto_enums = { version = "0.8.6", default-features = false, features = ["type_analysis", "transpose_methods", "std", "ops", "convert", "fmt", "futures03", "futures01", "rayon", "serde", "tokio1", "tokio03", "tokio02", "tokio01", "http_body1", "unstable", "coroutine_trait", "generator_trait", "fn_traits", "trusted_len"] }
default = std

Default features.

type_analysis

Analyze return type of function and let binding.

transpose_methods

Enable to use transpose* methods.

std default

[std|core] libraries

Enable to use std library's traits.

ops

Enable to use [std|core]::ops's Deref, DerefMut, Index, IndexMut, and RangeBounds traits.

convert

Enable to use [std|core]::convert's AsRef and AsMut traits.

fmt

Enable to use [std|core]::fmt's traits other than Debug, Display and Write

futures03

Using external libraries

https://docs.rs/futures/0.3

futures01

https://docs.rs/futures/0.1

rayon

https://docs.rs/rayon/1

serde

https://docs.rs/serde/1

tokio1

https://docs.rs/tokio/1

tokio03

https://docs.rs/tokio/0.3

tokio02

https://docs.rs/tokio/0.2

tokio01

https://docs.rs/tokio/0.1

http_body1

https://docs.rs/http-body/1

unstable

Unstable features These features are outside of the normal semver guarantees and require the unstable feature as an explicit opt-in to unstable API.

coroutine_trait generator_trait?

Enable unstable features of [std|core] libraries

Enable to use [std|core]::ops::Coroutine trait.

generator_trait = coroutine_trait

alias for coroutine_trait; TODO: remove in the next breaking release

fn_traits

Enable to use [std|core]::ops's Fn, FnMut, and FnOnce traits.

trusted_len

Enable to use [std|core]::iter::TrustedLen trait.

Features from optional dependencies

Note: futures, tokio, rayon, serde, and http-body are public dependencies.