NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #610 most downloaded on crates.io
Lossless functionality for platform-native strings
Latest stable
7.2.1
Last release 4 months ago
16 Jul 2026
Release timing varies
gaps range from 1 weeks to 13 months
Nearly every release is documented
notes for 30 of 31 stable releases
13 versions withdrawn
withdrawn after publishing
7 years old
45 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Support future stabilization of [OsStr::split_at]
OsStr::split_atIncreased the minimum supported Rust toolchain version to 1.81.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
- Improved documentation
Added support for the target [wasm32-wasip2]
Published [7.0.0-beta] as a release version
[OsStrBytes::to_io_bytes_lossy]
OsStrBytes::from_io_bytesOsStrBytes::to_io_bytesOsStrBytes::to_io_bytes_lossyOsStrBytesExt::get_uncheckedOsStrBytesExt::indexOsStrBytesExt::repeatOsStrBytesExt::rsplitOsStrBytesExt::splitOsStrBytesExt::utf8_chunksOsStringBytes::from_io_vecOsStringBytes::into_io_vecOsStringBytes::into_io_vec_lossyRawOsStr::get_uncheckedRawOsStr::repeatRawOsStr::rsplitRawOsStr::utf8_chunksRawOsStr::new and RawOsString::new to accept more typesDoubleEndedIterator implementations for Split and RawSplitEq implementation for EncodingErrorDisplay implementation for EncodingError on remaining platformsAdded protection against "nightly" feature use in libraries
Deprecated items to prepare for the next major version
OsStrBytesExtRawOsStr::as_encoded_bytesRawOsStr::from_encoded_bytes_uncheckedRawOsStrCow::from_os_strRawOsString::from_encoded_vec_uncheckedRawOsString::into_encoded_vecAsRef, From, PartialEq trait implementations for RawOsStr and RawOsStringImproved documentation
Clarified that HermitCore requires a nightly toolchain and added compatibility for the latest version
Fixed incorrect UTF-8 detection on Windows
Implemented [Clone] for [EncodingError]
Clone for EncodingErrorOsStr on WindowsAdded unstable support for the target [riscv32imac-unknown-xous-elf]
Deprecated using [OsStrBytes::from_raw_bytes] and [OsStringBytes::from_raw_vec] without the "checked\_conversions" feature
OsStrBytes::assert_from_raw_bytesOsStringBytes::assert_from_raw_vecRawOsStr::assert_from_raw_bytesRawOsStr::from_raw_bytesRawOsStr::from_raw_bytes_uncheckedRawOsStr::trim_matchesRawOsStrCowRawOsString::assert_from_raw_vecRawOsString::clearRawOsString::from_raw_vecRawOsString::from_raw_vec_uncheckedRawOsString::shrink_to_fitRawOsString::split_offRawOsString::truncateOsStrBytes::from_raw_bytes and OsStringBytes::from_raw_vec without the "checked_conversions" featureAdded [Box] conversions for [RawOsStr] and [RawOsString]
Box conversions for RawOsStr and RawOsString
RawOsString::into_box can be used to create Box<RawOsStr>.wasm64-unknown-unknownAdded support for SOLID targets (#8):
Fixed a future compatibility warning
Removed the deprecated "deprecated-byte-patterns" feature
Display implementation for EncodingErrorDeprecated the implementation of [Pattern] for [u8]
Pattern for u8
#[deprecated] cannot be used for trait implementations (rust-lang/rust#39935).print_bytes::ToBytes implementations for RawOsStr and RawOsStringImproved the [Debug] implementations for [RawOsStr] and [RawOsString]
Debug implementations for RawOsStr and RawOsStringuniquote::Quote implementations for RawOsStr and RawOsStringwasm32-unknown-emscriptenWorked around a documentation bug
Implemented [Default] for [&RawOsStr] and [RawOsString]
RawOsStr::splitRawOsStr::split_atDefault for &RawOsStr and RawOsStringIndex for range types for RawOsStr and RawOsStringAdded [RawOsStr] and [RawOsString] to ease development when using this crate
RawOsStr and RawOsString to ease development when using this crateAdded support for the target [x86_64-fortanix-unknown-sgx]
x86_64-fortanix-unknown-sgx (#5)Added "raw" to all method names to clarify that the encoding is unspecified
These are all the name changes included in this version:
OsStrBytes::from_bytes → OsStrBytes::from_raw_bytesOsStrBytes::to_bytes → OsStrBytes::to_raw_bytesOsStringBytes::from_bytes → OsStrBytes::from_raw_bytesOsStringBytes::from_cow → OsStrBytes::from_raw_bytesOsStringBytes::from_vec → OsStringBytes::from_raw_vecOsStringBytes::into_vec → OsStringBytes::into_raw_vecAdded support for targets `wasm32-unknown-emscripten` and `wasm32-unknown-unknown`
wasm32-unknown-emscripten and wasm32-unknown-unknownNothing published for this version
Disabled nightly documentation features when building other crates
Created the raw module to work around limitations of the encoding specification
Fixed a bug that caused decoding methods to incorrectly return an error for valid bytes
Added support for target `wasm32-wasi`
wasm32-wasiAdded [OsStringBytes::from_cow]
OsStringBytes::from_cowFixed undefined behavior when running on Windows
OsStrBytes::from_bytes to &AsRef<[u8]>Provided implementations for [Path] and [PathBuf]
Nothing published for this version
Nothing published for this version
Nothing published for this version
Added the [must_use] attribute to all methods
must_use attribute to all methodsAdded "OsStr Bytes:" as a prefix to error messages
Nothing published for this version
Removed undefined behavior in the Windows implementation of [OsStrBytes::from_bytes]
OsStrBytes::from_bytes
Improved performance of [OsStrBytes::from_bytes] and related methods on Windows
OsStrBytes::from_bytes and related methods on WindowsSlightly improved performance of [OsStrBytes::from_bytes] and related methods on Windows
OsStrBytes::from_bytes and related methods on WindowsNothing published for this version
Nothing published for this version
One column per quarter.