Cargo Features

[dependencies]
flexstr_support = { version = "0.1.4", default-features = false, features = ["safe", "std", "win_min_unsafe", "bytes", "cstr", "osstr", "path", "str"] }
default = std, str

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

safe win_min_unsafe?

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

std default osstr?

Affects traits::StringLike.as_os_str, traits::StringLike.as_path, traits::StringLike.into_os_string, traits::StringLike.into_path_buf, traits::StringLike.to_os_string, traits::StringLike.to_path_buf

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.

bytes

String type features

Affects traits::StringLike.into_vec_bytes, traits::StringLike.to_vec_bytes

cstr

Affects traits::StringLike.as_c_str, traits::StringLike.into_c_string, traits::StringLike.to_c_string

osstr path? = std

Affects traits::StringLike.as_os_str, traits::StringLike.into_os_string, traits::StringLike.to_os_string

path = osstr

Affects traits::StringLike.as_path, traits::StringLike.into_path_buf, traits::StringLike.to_path_buf

str default