Cargo Features

[dependencies]
armour = { version = "0.13.4", default-features = false, features = ["std", "ts-types", "smallvec", "ts-rs", "specta"] }
default = std

The std feature is set by default whenever armour is added without default-features = false somewhere in the dependency tree.

std default

Enables zerocopy, async-broadcast, bytes, log, 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

ts-types

Enables typescript-type-def

Features from optional dependencies

smallvec implicit feature

Enables smallvec

smallvec:

'Small vector' optimization: store up to a small number of items on the stack

ts-rs implicit feature

Enables ts-rs

ts-rs:

generate typescript bindings from rust types

specta implicit feature

Enables specta

specta:

Easily export your Rust types to other languages