orlp / slotmap

Slotmap data structure for Rust
zlib License
1.12k stars 70 forks source link

no_std support? #26

Closed Lokathor closed 3 years ago

Lokathor commented 5 years ago

Can a flag be added to make this crate no_std and have it only depend on alloc?

orlp commented 3 years ago

This is implemented and will be available in the upcoming version. By default the std feature is enabled, use --no-default-features to disable it. The only feature that goes missing is SparseSecondaryMap, as it relies on HashMap (maybe I can switch to BTreeMap for no_std? I'll check it out).

orlp commented 3 years ago

And 1.0 is now out which has no_std support.