Registry / utility / str-buf

str-buf

JSON →
library4.0.0rscratesunverified

Static string buffer for Rust with fixed-size allocation.

# Cargo.toml [dependencies] str-buf = "4.0.0"
INSTALL
IMPORT
SIG · STR-BUF
S
str-buf
utilityrustv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StrBuf
use str_buf::StrBuf;

Create a fixed-size string buffer and push a string.

use str_buf::StrBuf; let mut buf = StrBuf::<32>::new(); buf.push_str("hello"); assert_eq!(buf.as_str(), "hello");
Debug
Known issues
gotchaBuffer size is fixed at compile time; overflow causes panic.
fix
Ensure the buffer size is large enough for your data.
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
str-buf — cargo add str-buf · libregistry