Registry / utility / arraystring

arraystring

JSON →
library0.3.0rscratesunverified

Fixed capacity stack based generic string type for Rust.

# Cargo.toml [dependencies] arraystring = "0.3.0"
INSTALL
IMPORT
SIG · ARRAYSTRING
A
arraystring
utilityrustv0.3.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.

ArrayString
use arraystring::ArrayString;

Create a fixed-capacity stack string.

use arraystring::ArrayString; fn main() { let s: ArrayString<10> = ArrayString::from("hello").unwrap(); println!("{}", s); }
Debug
Known issues
gotchaPanics if capacity exceeded; use try_from for fallible conversion
fix
Use ArrayString::try_from or check length before creating
affects: >=0.3.0
Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
2
Meta
1
Resources
arraystring — cargo add arraystring · libregistry