stack-buf 0.1.6

Vector-like facade for arrays allocated entirely on the stack.
Documentation
//! Vector-like facade for arrays allocated entirely on the stack.
//!
//! Shallow wrapper around an underlying `[T; N]`, which panics if the
//! array bounds are exceeded.
//!
//! ## Optional features
//!
//! ### `std`
//!
//! Enabled by default. Use std library; disable to use `no_std` instead.
//!
//! ### `str`
//!
//! When this optional dependency is enabled, `StackStr` is available.
//!
//! ### `serde`
//!
//! When this optional dependency is enabled, `StackVec` and `StackStr` implement the `serde::Serialize` and
//! `serde::Deserialize` traits.
//!
//! ## Rust Version
//!
//! This version of `stack-buf` requires Rust 1.51 or later.

#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(not(feature = "std"))]
extern crate core as std;

mod vec;

pub use crate::vec::{Drain, IntoIter, StackVec};

#[cfg(feature = "str")]
mod str;

#[cfg(feature = "str")]
pub use crate::str::{FromUtf8Error, StackStr};