Cargo Features
[dependencies]
armour = { version = "0.15.3", default-features = false, features = ["std", "rust_decimal", "smallvec", "ts", "ts-rs"] }
- default = std
-
The
std
feature is set by default wheneverarmour
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables tracing and zerocopy ^0.7, async-broadcast, bytes, parking_lot, rand, serde, serde_json, strum, and thiserror, serde of arrayvec, serde-human-readable and std of time
Affects
enc::IdHasher.ser
,enc::IdHasher.deser
,hashid::create_harsh
,hashid::HarshIdent.get_hasher
,hashid::HarshIdent.get_name
…
Features from optional dependencies
- rust_decimal implicit feature
- smallvec implicit feature
-
Enables smallvec
smallvec:
'Small vector' optimization: store up to a small number of items on the stack
- ts implicit feature
-
Enables typescript-type-def
typescript-type-def:
Generate TypeScript type definitions for Rust types
- ts-rs implicit feature
-
Enables ts-rs
ts-rs:
generate typescript bindings from rust types