Releases: 1Password/sys-locale
Releases · 1Password/sys-locale
v0.3.2
What's Changed
Added
- Support for all other Apple targets, such as watchOS and tvOS by @complexspaces in #38.
- Support for ignoring POSIX modifiers in UNIX locales with them present by @pasabanov in #33.
- Parsing support/recognition may come at a later date.
- Support for returning a list of user locales on Linux/BSD UNIX platforms by @pasabanov in #35.
Fixed
- No longer use
LC_CTYPE
when determining the locale; the crate now usesLC_MESSAGES
in its place by @pasabanov in #35. - Skip empty locale environment variables on UNIX platforms by @complexspaces in #29.
- Corrected types mentioned and improved the public API documentation by @pasabanov in #37.
Changed
- Improved crate download size by excluding unused directories and files by @pasabanov.
- Very slight improvement to locale fetching performance on Windows by @complexspaces in #29.
- Increased MSRV to Rust 1.56, which is 3 years old as of this release by @complexspaces.
New Contributors
- @pasabanov made their first contribution in #30
Full Changelog: v0.3.1...v0.3.2
v0.3.1
Added
- Added support for getting a list of user locales in their preferred order via
get_locales
.- Additional locales are currently supported on iOS, macOS, WASM, and Windows. Other platforms will
only return a single locale likeget_locale
does.
- Additional locales are currently supported on iOS, macOS, WASM, and Windows. Other platforms will
Changed
- Removed
windows-sys
dependency
v0.3.0
Changed
- The crate now only uses
wasm-bindgen
when targeting WebAssembly on the web.
Use the newjs
feature to target the web.
Fixed
- The crate now compiles for unsupported platforms.
- Cleaned up typos and grammar in README.
v0.2.4
Changed
- Removed dependency on the
winapi
crate in favor ofwindows-sys
, following more of the wider ecosystem.
v0.2.3
Fixed
- Re-release 0.2.2 and correctly maintain
no_std
compatibility on Apple targets.
v0.2.2
Changed
- The Apple backend has been rewritten in pure Rust instead of Objective-C.
Fixed
- The locale returned on UNIX systems is now always a correctly formatted BCP-47 tag.
v0.2.1
Added
- The crate now supports being used via WASM in a WebWorker environment.
v0.2.0
Fixed
- Fixed a soundness issue on Linux and BSDs by querying the environment directly instead of using libc setlocale. The libc setlocale is not safe for use in a multi-threaded context.
Changed
- No longer
no_std
on Linux and BSDs
v0.1.0
Initial release