Skip to content

Releases: 1Password/sys-locale

v0.3.2

01 Nov 18:08
Compare
Choose a tag to compare

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 uses LC_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

Full Changelog: v0.3.1...v0.3.2

v0.3.1

27 Aug 20:18
Compare
Choose a tag to compare

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 like get_locale does.

Changed

  • Removed windows-sys dependency

v0.3.0

04 Apr 06:34
Compare
Choose a tag to compare

Changed

  • The crate now only uses wasm-bindgen when targeting WebAssembly on the web.
    Use the new js feature to target the web.

Fixed

  • The crate now compiles for unsupported platforms.
  • Cleaned up typos and grammar in README.

v0.2.4

07 Mar 19:35
Compare
Choose a tag to compare

Changed

  • Removed dependency on the winapi crate in favor of windows-sys, following more of the wider ecosystem.

v0.2.3

06 Nov 17:24
Compare
Choose a tag to compare

Fixed

  • Re-release 0.2.2 and correctly maintain no_std compatibility on Apple targets.

v0.2.2

06 Nov 15:59
Compare
Choose a tag to compare

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

17 Jun 04:30
Compare
Choose a tag to compare

Added

  • The crate now supports being used via WASM in a WebWorker environment.

v0.2.0

01 Mar 16:58
Compare
Choose a tag to compare

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

13 May 16:27
Compare
Choose a tag to compare

Initial release