Cargo Features

[dependencies]
faststr = { version = "0.2.34", default-features = false, features = ["std", "redis", "redis-unsafe", "rkyv", "sea-orm", "serde", "serde-unsafe", "sqlx-mysql", "sqlx-mysql-unsafe", "sqlx-postgres", "sqlx-postgres-unsafe", "ts-rs"] }
default = std

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

std default redis? sea-orm? sqlx-mysql? sqlx-postgres? ts-rs?

Enables std of bytes, optional rkyv, optional serde, and simdutf8

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

redis redis-unsafe? = itoa, ryu, std

Enables redis

redis-unsafe = redis
rkyv

With alloc

sea-orm = itoa, std

Enables sea-orm

For sea-orm integration tests

Affects faststr::sea_orm

serde serde-unsafe?

Enables alloc of serde

serde:

Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.

serde-unsafe = serde
sqlx-mysql sqlx-mysql-unsafe? = std

Enables sqlx and sqlx-mysql

sqlx-mysql-unsafe = sqlx-mysql
sqlx-postgres sqlx-postgres-unsafe? = std

Enables sqlx and sqlx-postgres

Affects faststr::sqlx_postgres

sqlx-postgres-unsafe = sqlx-postgres
ts-rs = std

Enables ts-rs ^11

Affects faststr::ts_rs

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.

itoa redis? sea-orm?
ryu redis?