compact_str

crates.io v0.9.0

2,001,633 weekly downloads · 18 Dependencies

Source data as of:

Summary

A memory efficient string type that transparently stores strings on the stack, when possible

Install cargo add compact_str

Registry values

Reproduced verbatim from the official registry, with the source named on each value.

Weekly downloads 2,001,633 Source: crates.io (Rust)
Releases 20 Last release: 2025-02-25 Source: crates.io (Rust)
Dependencies 18 Source: crates.io (Rust)

Description

A memory efficient string type that transparently stores strings on the stack, when possible

Registry-supplied description, cleaned to plain text. Source: crates.io (Rust).

Package details

Package
compact_str
Registry
crates.io
Version
0.9.0
Weekly downloads
2,001,633 (weekly)
Dependencies
18: castaway, cfg-if, itoa, rustversion, ryu, static_assertions, arbitrary, borsh, bytes, diesel, markup, proptest, quickcheck, rkyv, serde, smallvec, sqlx, zeroize
Releases
20
Last release
2025-02-25
First published
2021-09-20
Keywords
string, memory, compact, mutable, small
Homepage
https://github.com/ParkMyCar/compact_str
Repository
https://github.com/ParkMyCar/compact_str

Why a field shows "—": A dash means the value is not published by the source registry for that package. Quanteta never fills in a guessed value — a missing field stays blank.

Derived indices (computation method published)

Quanteta-computed from the registry values below. This is a derived index, not a measured registry metric. See the formula on the Data & Sources page.

Q-Vitality Quanteta 25.4 / 100 Maintenance activity index (release cadence + download level).
Q-Trust Quanteta 4.2 / 100 Adoption / stability index (community size + download stability + age).
Q-Risk Quanteta 81.4 / 100 Dependency-surface index. Higher = more risk factors detected.

Data & Sources