Skip to main content

Crate sakurai

Crate sakurai 

Source
Expand description

███████╗ █████╗ ██╗  ██╗██╗   ██╗██████╗  █████╗ ██╗
██╔════╝██╔══██╗██║ ██╔╝██║   ██║██╔══██╗██╔══██╗██║
███████╗███████║█████╔╝ ██║   ██║██████╔╝███████║██║
╚════██║██╔══██║██╔═██╗ ██║   ██║██╔══██╗██╔══██║██║
███████║██║  ██║██║  ██╗╚██████╔╝██║  ██║██║  ██║██║
╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝

§Usage

Add to Cargo.toml:

[dependencies]
sakurai = "0.1.1"

§Testing

Run the test suite:

cargo test

Run UB checks:

cargo +nightly miri test

§Safety & Disclaimers

Sakurai uses a fair bit of unsafe code internally, but the outward APIs are safe Rust.

███████╗ █████╗ ██╗ ██╗██╗ ██╗██████╗ █████╗ ██╗ ██╔════╝██╔══██╗██║ ██╔╝██║ ██║██╔══██╗██╔══██╗██║ ███████╗███████║█████╔╝ ██║ ██║██████╔╝███████║██║ ╚════██║██╔══██║██╔═██╗ ██║ ██║██╔══██╗██╔══██║██║ ███████║██║ ██║██║ ██╗╚██████╔╝██║ ██║██║ ██║██║ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝

=====================================================

Re-exports§

pub use btree::BTree;
pub use fixedvec::FixedVec;
pub use hashmap::HashMap;
pub use pivot::Pivot;
pub use pivot::PivotBuffer;
pub use queue::Queue;
pub use ring::RingBuffer;
pub use stack::Stack;

Modules§

btree
fixedvec
hashmap
pivot
queue
ring
stack

Macros§

fixedvec
Mirror of the vec! macro, for creating a FixedVec with initial values.
hashmap
Create a HashMap with initial values.
likely
unlikely