Crate features / block2
Feature flags · block2 0.6.2 · from crates.io 2026-10-24
block2 features: what each one does, and the line to copy
Short answerblock2 0.6.2 has 12 features. By default it turns on std; add default-features = false to start from nothing. It needs Rust 1.71 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
alloc | nothing else (a switch the code checks) | |
compiler-rt | objc2/unstable-compiler-rt | |
gnustep-1-7 | objc2/gnustep-1-7 | |
gnustep-1-8 | gnustep-1-7, objc2/gnustep-1-8 | |
gnustep-1-9 | gnustep-1-8, objc2/gnustep-1-9 | |
gnustep-2-0 | gnustep-1-9, objc2/gnustep-2-0 | |
gnustep-2-1 | gnustep-2-0, objc2/gnustep-2-1 | |
std | yes | alloc |
unstable-coerce-pointee | nothing else (a switch the code checks) | |
unstable-objfw | nothing else (a switch the code checks) | |
unstable-private | nothing else (a switch the code checks) | |
unstable-winobjc | gnustep-1-8 |
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 block2 declares (rust-version), and the release that changed it:
- 0.2.0-alpha.8 (2023-02-07): Rust 1.60
- 0.6.0 (2025-01-22): Rust 1.71
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p block2 --precise <version>, or use resolver 3, which picks compatible versions for you.
More on block2
Real downloads, dependents and alternatives: block2 crate data (538.9K real downloads a day, 530 dependents).
docs.rs feature list · crates.io · license MIT · edition 2021
Up next
Before you depend on itblock2 crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?