string-alloc

Crates.iostring-alloc
lib.rsstring-alloc
version0.0.3
created_at2025-03-18 16:13:51.690706+00
updated_at2025-03-18 20:40:37.217972+00
descriptionAllocator-aware no-std-compatible String implementation
homepage
repository
max_upload_size
id1596754
size31,867
antithesishq (github:antithesishq:antithesishq)

documentation

README

string-alloc

An allocator-aware, no_std-compatible implementation of String<A> that mirrors std::string::String.

Features

  • UTF-8 correctness
  • Full no_std support via extern crate alloc
  • Custom allocator compatibility

Usage

use string_alloc::String;
use std::alloc::Global;

let mut s = String::from_str_in("hello", Global);
s.push_str(" world");

License

Apache-2.0

Commit count: 0

cargo fmt