kstring
Key String: optimized for map keys
2.0.4
54M downloads/mo
#1176 most downloaded on crates.io
cobalt-org/kstring
What this package is like to depend on
Last release 1 months ago
17 Jul 2026
Release timing varies
gaps range from 3 weeks to 2.3 years
Most releases are documented
notes for 11 of 15 stable releases
1 version withdrawn
withdrawn after publishing
6 years old
24 releases · first in 2020
2 releases in the last 12 months
see the full history below
Release timeline
24 releases · Mar 2020 to Jul 2026Releases
latest 24-
2.0.417 Jul 2026 -
2.0.314 Jul 2026 -
2.0.225 Jul 2024 -
2.0.122 Jul 2024Release notes
Open source →Compatibility
- MSRV is now 1.73
Fixes
- Future-proof unsafe code from things the compiler could do
-
2.0.029 Mar 2022Release notes
Open source →Note: while we intended to be "forever 1.0" to be safe to use in public APIs, we checked our current users and it seemed safe enough to bump major to get the benefits from some breaking changes.
Compatibility
KStringis now a type alias toKStringBase<...>(where...depends on feature flags)serdeis no longer a default featurestdandunsafeare now default features- MSRV is now 1.59
Features
- Expose
StackString KString::try_inlineto exclusively useStackStringconst fned some functions- Opt-in
forbid(unsafe_code)by removing the defaultunsafefeature - Allow configuring the heap string type outside of feature flags
Fixes
- Add
#[must_use]everywhere
Performance
- Remove some extra bounds checks
- Speed up
clone
-
1.1.028 Mar 2022 withdrawnNothing published for this version
-
1.0.605 Nov 2021 -
1.0.524 Sep 2021Release notes
Open source →Features
- Add
max_inlinefeature which is slower for smaller strings but faster for intermediate-length strings - Added
arcfeature which is slower for smaller strings but, presumably, faster for large-enough strings
Fixes
- Ensure the size of KString matches String on 32-bit systems
- Add
-
1.0.409 Jul 2021 -
1.0.308 Jul 2021 -
1.0.206 Jul 2021Release notes
Open source →Features
serdesupport is now optional (still on by default)
Performance
- Sped up
KString::from_string/KStringCow::from_string
-
1.0.130 Jan 2021Nothing published for this version
-
1.0.008 Jul 2020Release notes
Open source →<!-- next-url --> [Unreleased]: https://github.com/cobalt-org/kstring/compare/v2.0.4...HEAD [2.0.4]: https://github.com/cobalt-org/kstring/compare/v2.0.3...v2.0.4 [2.0.3]: https://github.com/cobalt-org/kstring/compare/v2.0.2...v2.0.3 [2.0.2]: https://github.com/cobalt-org/kstring/compare/v2.0.1...v2.0.2 [2.0.1]: https://github.com/cobalt-org/kstring/compare/v2.0.0...v2.0.1 [2.0.0]: https://github.com/cobalt-org/kstring/compare/v1.1.0...v2.0.0 [1.1.0]: https://github.com/cobalt-org/kstring/compare/v1.0.6...v1.1.0 [1.0.6]: https://github.com/cobalt-org/kstring/compare/v1.0.5...v1.0.6 [1.0.5]: https://github.com/cobalt-org/kstring/compare/v1.0.4...v1.0.5 [1.0.4]: https://github.com/cobalt-org/kstring/compare/v1.0.3...v1.0.4 [1.0.3]: https://github.com/cobalt-org/kstring/compare/v1.0.2...v1.0.3 [1.0.2]: https://github.com/cobalt-org/kstring/compare/v1.0.1...v1.0.2 [1.0.1]: https://github.com/cobalt-org/kstring/compare/v1.0.0...v1.0.1
-
0.1.207 Jul 2020Nothing published for this version
-
0.1.116 Jun 2020Nothing published for this version
-
0.1.020 Mar 2020Nothing published for this version
-
0.1.0-alpha.919 Mar 2020 pre-releaseNothing published for this version
-
0.1.0-alpha.819 Mar 2020 pre-releaseNothing published for this version
-
0.1.0-alpha.717 Mar 2020 pre-releaseNothing published for this version
-
0.1.0-alpha.617 Mar 2020 pre-releaseNothing published for this version
-
0.1.0-alpha.517 Mar 2020 pre-releaseNothing published for this version
-
0.1.0-alpha.416 Mar 2020 pre-releaseNothing published for this version
-
0.1.0-alpha.316 Mar 2020 pre-releaseNothing published for this version
-
0.1.0-alpha.216 Mar 2020 pre-releaseNothing published for this version