Better reference counted strings for Rust
APACHE-2.0 License
ArcStr
's at runtime (leaking them) in a new ArcStr::leak
function.init_with
methods to create an ArcStr using a callback.And many smaller changes. See the full changelog for details: https://github.com/thomcc/arcstr/compare/1.1.5...v1.2.0.
Published by thomcc over 2 years ago
This release is a bugfix release that only includes a change to ensure arcstr::format!("foo {bar}")
works as expected in newer versions of Rust. (#37).
Published by thomcc almost 3 years ago
This release is a patch release that adds a single new API: ArcStr::try_alloc(s: &str) -> Option<ArcStr>
[^1], which exists to allow copying a &str
into a new ArcStr
, failing (returning None
) if allocation fails for some reason.
[^1]: This is a pretty niche use case, and the name is somewhat dodgy, but makes it very clear what the failure case was.
Published by thomcc almost 3 years ago
This release has no changes from v1.1.1
because I'm a doofus. (The real changes are in v1.1.3
).
(It's not yanked/worth yanking because the mistake was just that I cut the release without pulling the right stuff...)