string-alloc

Crates.iostring-alloc
lib.rsstring-alloc
version
sourcesrc
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
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
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