Ben Chuanlong Du's Blog

It is never too late to learn.

Useful Rust Crates for String

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

bstr

bstr A string type that is not required to be valid UTF-8.

arcstr

arcstr is a better reference-counted string type, with zero-cost (allocation-free) support for string literals, and reference counted substrings.

atoi-rs

atoi-rs parses integers directly from [u8] slices in safe code .

lazy_format

lazy_format is a [no_std] library for lazily formatting things, which avoids allocating temporary strings when writing to a buffered stream.

Askama

Askama implements a template rendering engine based on Jinja. It generates Rust code from your templates at compile time based on a user-defined struct to hold the template's context.

human_bytes

human_bytes converts bytes into human-readable values.

scraper

scraper provides HTML parsing and querying with CSS selectors.

semver

semver provides parser and evaluator for Cargo's flavor of Semantic Versioning.

jetscii

jetscii A tiny library to efficiently search strings for sets of ASCII characters and byte slices for sets of bytes.

fluent-rs

fluent-rs Rust implementation of Fluent which is a localization system for natural-sounding translations.

Comments