Cargo Features
[dependencies]
woe = { version = "0.1.8", default-features = false, features = ["either_methods", "nightly", "try_trait", "trusted_len", "never_type", "termination_trait", "product_trait", "sum_trait", "from_iterator_trait", "no_std"] }
- default = either_methods
-
The
either_methods
feature is set by default wheneverwoe
is added without
somewhere in the dependency tree.default-features = false - either_methods default = either
-
This uses the
either
crate to enable methods which work onEither<LocalErr, FatalErr
. - nightly = from_iterator_trait, never_type, product_trait, sum_trait, termination_trait, trusted_len, try_trait
-
Enable all nightly-only features of the crate.
- try_trait from_iterator_trait? nightly? product_trait? sum_trait?
-
Allow
woe::Result
implementstd::ops::Try
- trusted_len nightly?
-
Enable
woe::{IntoIter, Iter, IterMut}
to all implementTrustedLen
. - never_type nightly? termination_trait?
-
Enable the
!
type, which allows a cheapinto_ok
conversion if the two error types are both!
. - termination_trait nightly? = never_type
-
Enable implementation of the
Termination
trait whenResult::Ok
is()
or!
, which letswoe::Result
be used as the return type ofmain
- product_trait nightly? = try_trait
-
Enable the
Product
trait, whose implementation requires theTry
trait. - sum_trait nightly? = try_trait
-
Enable the
Sum
trait, whose implementation requires theTry
trait. - from_iterator_trait nightly? = try_trait
-
Enable the
FromIterator
trait, whose implementation requires theTry
trait. - no_std
-
Make the crate
no_std
-compatible, meaning it can be used in contexts which don't have the standard library. Note that this deactivates thetermination_trait
feature, which relies onstd::process
(not part ofcore
, and thus not supported in ano_std
context).
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.