126 stable releases
Uses new Rust 2024
| 1.0.135 | May 23, 2026 |
|---|---|
| 1.0.130 |
|
| 1.0.69 | Mar 31, 2026 |
| 1.0.3 | Jan 12, 2025 |
| 0.1.19 | May 28, 2024 |
#1 in Memory management
1,284 downloads per month
Used in 6 crates
(5 directly)
510KB
12K
SLoC
Crate with parts of Rust std library ( different implementations, features not yet stabilised etc ),
in particular [Box], [Vec], [Rc], String and [collections]::{ BTreeMap, BTreeSet, HashMap, HashSet }.
Box, Rc and String do not have all std methods/traits implemented.
HashMap and HashSet are imported from the hashbrown crate.
RcStr is a reference-counted string based on RcSlice.
The localalloc module has allocator implementations.
Features
This crate supports the following cargo features:
serde: enables serialisation of [Vec],String,BTreeMapandBTreeSetvia serde crate.unsafe-optim: Enable unsafe optimisations in release mode.dynbox: enables Boxing of dyn values, requires nightly toolchain. An alternative is to use the [unsize_box] macro.log-alloc: prints details of thread-local allocation when thread terminates.
Crate with parts of Rust std library ( different implementations, features not yet stabilised etc ), in particular Box, Vec, Rc, String and collections::{ BTreeMap, BTreeSet, HashMap, HashSet }.
Box, Rc and String do not have all std methods/traits implemented.
HashMap and HashSet are imported from the hashbrown crate.
RcStr is a reference-counted string based on RcSlice.
The localalloc module has fast thread-local bump allocators.
crates.io : https://crates.io/crates/pstd
documentation: https://docs.rs/pstd/latest/pstd/
Dependencies
~3MB
~58K SLoC