scratchpad

A Rust library providing a stack-like dynamic memory pool with double-ended allocation support.

Features include:

Usage

Add this to your Cargo.toml:

toml [dependencies] scratchpad = "0.1"

and this to your crate root:

```rust

[macro_use]

extern crate scratchpad; ```

Rust Version Support

The minimum supported Rust version is 1.25 due to use of the repr(align) attribute.

no_std Support

scratchpad doesn't require the Rust standard library, although it makes use of it by default (via the std crate feature) to provide support for using Box as backing memory. For no_std support, the std feature must be disabled in your Cargo.toml:

toml [dependencies] scratchpad = { version = "0.1", default-features = false }

Box support is still available for no_std builds when using a nightly toolchain by enabling the unstable crate feature.

Unstable Features

The unstable crate feature provides some additional functionality when using a nightly toolchain:

Simply add the unstable feature to your Cargo.toml dependency:

toml [dependencies] scratchpad = { version = "0.1", features = ["unstable"] }