Crate features / const_format
Feature flags · const_format 0.2.37 · from crates.io 2026-10-24
const_format features: what each one does, and the line to copy
Short answerconst_format 0.2.37 has 18 features. Nothing is on by default: turn on what you use. It needs Rust 1.71.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
__debug | const_format_proc_macros/debug | |
__docsrs | nothing else (a switch the code checks) | |
__inline_const_pat_tests | __test, fmt | |
__only_new_tests | __test | |
__test | nothing else (a switch the code checks) | |
all | fmt, derive, rust_1_64, assert | |
assert | assertc | |
assertc | fmt, assertcp | |
assertcp | rust_1_51 | |
const_generics | rust_1_51 | |
constant_time_as_str | fmt | |
derive | fmt, const_format_proc_macros/derive | |
fmt | rust_1_83 | |
more_str_macros | rust_1_64 | |
nightly_const_generics | const_generics | |
rust_1_51 | nothing else (a switch the code checks) | |
rust_1_64 | rust_1_51 | |
rust_1_83 | rust_1_64 |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version const_format declares (rust-version), and the release that changed it:
- 0.2.32 (2023-10-14): Rust 1.57.0
- 0.2.36 (2026-04-17): Rust 1.71.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p const_format --precise <version>, or use resolver 3, which picks compatible versions for you.
More on const_format
docs.rs feature list · crates.io · license Zlib · edition 2021
Up next
Next crateFeature flags for every popular crateRead it next →Also worth your time
Did this answer your question?