1 unstable release
0.1.0 | Dec 17, 2023 |
---|
#88 in #rand
9KB
fastutil-rs
Fast utilities and optimizations for Rust.
fastutil-rs
is a convenience crate that wraps around other crates to provide faster, or otherwise useful replacements for common things in Rust, like collections, random number generators, etc.
Features
no_std
and WASM support- 100% safe
Optional Features
std
uses the Rust standard library to provide collectionsalloc
uses alloc +hashbrown
to provide collectionshash
(default) provides a fast platform-based hashing algorithmindexmap
(default) provides aHashMap
andHashSet
that keeps insertion ordermultimap
(std
only) provides aHashMap
which stores multiple valuesrand
(default) provides minimal RNG implementations fromsmolcrush
serde
enables (de)serialization of collectionsnightly
provides nightly-only optimizationslikely
andunlikely
can be wrapped around conditions to help the compiler optimize if statements based on the likelihood of them being true.- This also enables nightly optimizations for
hashbrown
ifalloc
is being used.
Minimum Supported Rust Version (MSRV)
The current MSRV is 1.63.0.
Dependencies
~1–1.5MB
~24K SLoC