Cargo Features

[dependencies]
konst = { version = "0.4.3", default-features = false, features = ["debug", "alloc", "cmp", "const_panic_derive", "iter", "parsing", "konst_proc_macros", "parsing_proc", "docsrs", "trybuild"] }
default = cmp, iter, parsing_proc

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

debug

Enables extra checks for debug

alloc

Affects konst::alloc_type

cmp default

Affects konst::cmp, nonzero::cmp, other::cmp, primitive::cmp, range::cmp, slice::cmp

const_panic_derive

Enables derive of const_panic

iter default

Affects konst::iter, konst::ReadmeTest

parsing parsing_proc

Affects konst::parsing

konst_proc_macros parsing_proc

Enables konst_proc_macros

Affects macros::destructuring_rec

parsing_proc default = konst_proc_macros, parsing

Affects konst::ReadmeTest

rust_latest_stable docsrs

Features from optional dependencies

trybuild implicit feature

Enables trybuild

trybuild:

Test harness for ui tests of compiler diagnostics