#string #c-abi

no-std xstring

An immutable owned string that could be cheaply cloned and passed through FFI

1 unstable release

Uses new Rust 2024

new 0.1.0 May 12, 2025

#167 in FFI

MIT/Apache

20KB
530 lines

XString

XString is an immutable owned string (and also bytes), sized 2 pointers, that may conditionally hold the data inlined, statically, or within ref counted heap allocated memory, which makes it cheap to clone and pass around.

It has a certain memory representation and could be easily passed through FFI boundaries.

Crates.io Docs.rs MIT Or Apache-2.0 licensed Build Status

Dependencies

~95–310KB