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
'sDeref
,DerefMut
,Index
,IndexMut
, andRangeBounds
traits. - convert
-
Enable to use
[std|core]::convert
'sAsRef
andAsMut
traits. - fmt
-
Enable to use
[std|core]::fmt
's traits other thanDebug
,Display
andWrite
- futures03
-
Using external libraries
- futures01
-
- rayon
-
- serde
-
- tokio1
-
- tokio03
-
- tokio02
-
- tokio01
-
- http_body1
-
- 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
'sFn
,FnMut
, andFnOnce
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.