Crate features / typenum
Feature flags · typenum 1.20.1 · from crates.io 2026-10-24
typenum features: what each one does, and the line to copy
Short answertypenum 1.20.1 has 4 features. Nothing is on by default: turn on what you use. It needs Rust 1.41.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
const-generics | nothing else (a switch the code checks) | |
i128 | nothing else (a switch the code checks) | |
scale_info | scale-info/derive | |
strict | nothing else (a switch the code checks) |
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 typenum declares (rust-version), and the release that changed it:
- 1.16.0 (2022-12-05): Rust 1.37.0
- 1.20.0 (2026-04-19): Rust 1.41.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p typenum --precise <version>, or use resolver 3, which picks compatible versions for you.
More on typenum
Real downloads, dependents and alternatives: typenum crate data (3M real downloads a day, 399 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2018
Up next
Before you depend on ittypenum crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?