Cargo Features
[dependencies]
facet = { version = "0.41.0", default-features = false, features = ["auto-traits", "function", "reflect", "std", "all-impls", "alloc", "nonzero", "net", "bytes", "bytestring", "camino", "compact_str", "uuid", "ulid", "ordered-float", "jiff02", "time", "chrono", "url", "ruint", "indexmap", "num-complex", "smartstring", "tuples-12", "fn-ptr", "simd", "doc", "helpful-derive", "testfeat", "static_assertions"] }
- default = doc, helpful-derive, std
-
These default features are set whenever
facetis added withoutsomewhere in the dependency tree.default-features = false - auto-traits
-
Enables auto-traits of facet-core
- function
-
Enable function shape introspection
Enables function of facet-macros
- reflect
-
Enable reflection via Peek and Poke types
Enables facet-reflect
- std default = alloc
-
Enable standard library support
Enables std of facet-core
- all-impls = alloc, bytes, bytestring, camino, chrono, compact_str, indexmap, jiff02, net, nonzero, num-complex, ordered-float, smartstring, time, ulid, url, uuid
-
Enable all optional Facet trait implementations for third-party types
- alloc all-impls? std
-
Enable allocation support for no_std environments
Enables alloc of facet-core
- nonzero all-impls?
-
Provide Facet trait implementations for NonZero<T> types
Enables nonzero of facet-core
- net all-impls?
-
Provide Facet trait implementations for network types (SocketAddr, IpAddr, etc.)
Enables net of facet-core
- bytes all-impls?
-
Provide Facet trait implementations for bytes::Bytes and bytes::BytesMut
Enables bytes of facet-core
- bytestring all-impls?
-
Provide Facet trait implementations for bytestring::ByteString
Enables bytestring of facet-core
- camino all-impls?
-
Provide Facet trait implementations for camino::Utf8Path and camino::Utf8PathBuf
Enables camino of facet-core
- compact_str all-impls?
-
Provide Facet trait implementations for compact_str::CompactString
Enables compact_str of facet-core
- uuid all-impls?
-
Provide Facet trait implementations for uuid::Uuid
Enables uuid of facet-core
- ulid all-impls?
-
Provide Facet trait implementations for ulid::Ulid
Enables ulid of facet-core
- ordered-float all-impls?
-
Provide Facet trait implementations for ordered_float types
Enables ordered-float of facet-core
- jiff02 all-impls?
-
Provide Facet trait implementations for jiff crate types
Enables jiff02 of facet-core
- time all-impls?
-
Provide Facet trait implementations for time crate types
Enables time of facet-core
- chrono all-impls?
-
Provide Facet trait implementations for chrono crate types
Enables chrono of facet-core
- url all-impls?
-
Provide Facet trait implementations for url::Url
Enables url of facet-core
- ruint
-
Provide Facet trait implementations for ruint types
Enables ruint of facet-core
- indexmap all-impls?
-
Provide Facet trait implementations for indexmap::IndexMap and indexmap::IndexSet
Enables indexmap of facet-core
- num-complex all-impls?
-
Provide Facet trait implementations for num_complex::Complex
Enables num-complex of facet-core
- smartstring all-impls?
-
Provide Facet trait implementations for smartstring::SmartString
Enables smartstring of facet-core
- tuples-12
-
Provide Facet trait implementations for tuples up to size 12. Without it,
Facet is only implemented for tuples up to size 4.Enables tuples-12 of facet-core
- fn-ptr
-
Provide Facet trait implementations for function pointers.
Enables fn-ptr of facet-core
- simd
-
Provide Facet trait implementations for portable SIMD types (requires nightly).
This adds 84 type implementations which increases compile time.Enables simd of facet-core
- doc default
-
Include doc comments in generated Shape/Field/Variant definitions
Enables doc of facet-macros
- helpful-derive default
-
Enable typo suggestions for unknown attributes/fields (uses strsim)
Enables helpful-derive of facet-macros
- testfeat
-
Does nothing outside of tests; used to ensure cfg_attr handling keeps working.
Features from optional dependencies
- static_assertions implicit feature
-
Enables static_assertions
static_assertions:
Compile-time assertions to ensure that invariants are met