pstd/lib.rs
1#![deny(missing_docs)]
2// To run cargo test -F tests use Nightly ( rustup default nightly ) and enable line below
3#![cfg_attr(test, feature(btree_cursors, assert_matches))]
4
5//! Crate with parts of Rust std library ( different implementations, features not yet stabilised etc ), in particular [`collections::BTreeMap`] and [`collections::BTreeSet`].
6
7//!# Features
8//!
9//! This crate supports the following cargo features:
10//! - `serde` : enables serialisation of [`collections::BTreeMap`] and [`collections::BTreeSet`] via serde crate.
11//! - `unsafe-optim` : Enable unsafe optimisations in release mode.
12
13/// Memory allocation.
14pub mod alloc;
15
16/// Containers.
17pub mod collections {
18 pub mod btree_map;
19
20 pub use btree_map::BTreeMap;
21
22 pub mod btree_set;
23
24 pub use btree_set::BTreeSet;
25
26 mod merge_iter;
27}
28
29#[cfg(test)]
30mod testing {
31 pub mod crash_test;
32}