Cargo Features

[dependencies]
tinystr = { version = "0.8.0", default-features = false, features = ["std", "alloc", "bench", "serde", "zerovec", "databake"] }
default = alloc

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

std
alloc default
bench

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

zerovec implicit feature

Enables zerovec

zerovec:

Zero-copy vector backed by a byte array

databake implicit feature

Enables databake

databake:

Trait that lets structs represent themselves as (const) Rust expressions