Cargo Features

[dependencies]
flexstr = { version = "0.11.0", default-features = false, features = ["sqlx_pg_arrays", "safe", "std", "win_min_unsafe", "bytes", "cstr", "osstr", "path", "str", "serde"] }
default = std, str

These default features are set whenever flexstr is added without default-features = false somewhere in the dependency tree.

sqlx_pg_arrays = sqlx

Enables postgres of sqlx

safe win_min_unsafe?

Does not use and forbids all unsafe code (unless windows_min_unsafe is also enabled, but that only impacts Windows)

Enables safe of flexstr_support and inline_flexstr

std default osstr?

Enables std of flexstr_support, inline_flexstr, and optional serde

serde:

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

Affects flexstr::osstr, flexstr::path

win_min_unsafe = safe

Uses the minimum unsafe code possible to support OsStr/Path on Windows. Doesn't impact any other string types or operating systems.

Enables win_min_unsafe of flexstr_support and inline_flexstr

bytes

String type features

Enables bytes of flexstr_support and inline_flexstr

Affects flexstr::bytes

cstr

Enables cstr of flexstr_support and inline_flexstr

Affects flexstr::cstr

osstr path? = std

Enables osstr of flexstr_support and inline_flexstr

Affects flexstr::osstr

path = osstr

Enables path of flexstr_support and inline_flexstr

Affects flexstr::path

str default

Enables str of flexstr_support and inline_flexstr

Affects flexstr::str

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.

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

sqlx sqlx_pg_arrays?