Crate features / sha1
Feature flags · sha1 0.11.0 · from crates.io 2026-10-24
sha1 features: what each one does, and the line to copy
Short answersha1 0.11.0 has 3 features. By default it turns on alloc, oid; add default-features = false to start from nothing. It needs Rust 1.85 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
alloc | yes | digest/alloc |
oid | yes | digest/oid |
zeroize | digest/zeroize |
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 sha1 declares (rust-version), and the release that changed it:
- 0.11.0-pre.0 (2024-01-08): Rust 1.71
- 0.11.0-pre.2 (2024-01-17): Rust 1.72
- 0.11.0-pre.5 (2025-03-05): Rust 1.85
- 0.10.7 (2026-07-10): no rust-version declared
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p sha1 --precise <version>, or use resolver 3, which picks compatible versions for you.
More on sha1
Real downloads, dependents and alternatives: sha1 crate data (2M real downloads a day, 2,496 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2024
Up next
Before you depend on itsha1 crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?