Releases: dylni/os_str_bytes
Releases · dylni/os_str_bytes
3.0.0
- Added "raw" to all method names to clarify that the encoding is unspecified
- The naming also makes them easier to notice in source code.
- Changed method signatures to make them easier to use
- Improved the signatures of functions in the "raw" module to allow passing arguments by value
- Improved documentation
- Increased the minimum supported Rust toolchain version to 1.34.0
These are all the name changes included in this version:
OsStrBytes::from_bytes
→OsStrBytes::from_raw_bytes
OsStrBytes::to_bytes
→OsStrBytes::to_raw_bytes
OsStringBytes::from_bytes
→OsStrBytes::from_raw_bytes
OsStringBytes::from_cow
→OsStrBytes::from_raw_bytes
OsStringBytes::from_vec
→OsStringBytes::from_raw_vec
OsStringBytes::into_vec
→OsStringBytes::into_raw_vec
2.4.0
- Added support for targets
wasm32-unknown-emscripten
andwasm32-unknown-unknown
2.3.2
2.3.1
2.3.0
2.2.1
2.2.0
- Added support for target
wasm32-wasi
2.1.0
- Added
OsStringBytes::from_cow
- Added support for more platforms:
https://github.com/dylni/os_str_bytes/tree/2.1.0#rust-version-support
2.0.0
- Fixed undefined behavior when running on Windows
- Removed unsafe methods
- The safe versions are now equally fast, and the results they return can be unwrapped.
- The whole crate now only uses safe code!
- Changed the parameter type for
OsStrBytes::from_bytes
to&AsRef<[u8]>
- Improved documentation
- Improved error messages when encoding fails