PackageTrack
Sign in Get early access

sys-locale

Small and lightweight library to obtain the active system locale

0.3.2 29M downloads/mo #1701 most downloaded on crates.io 1Password/sys-locale

What this package is like to depend on

Last release 2 years ago

no release in 18 months

Ships fairly regularly

a new release about every 5 months

Most releases are documented

notes for 7 of 8 stable releases

1 version withdrawn

withdrawn after publishing

5 years old

9 releases · first in 2021

0 releases in the last 12 months

see the full history below

Release timeline

9 releases · May 2021 to Nov 2024
2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 9
  1. 0.3.2 01 Nov 2024
    Release notes

    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

    Open source →
  2. 0.3.1 27 Aug 2023
    Release notes

    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
    Open source →
  3. 0.3.0 04 Apr 2023
    Release notes

    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.
    Open source →
  4. 0.2.4 07 Mar 2023
    Release notes

    Changed

    • Removed dependency on the winapi crate in favor of windows-sys, following more of the wider ecosystem.
    Open source →
  5. 0.2.3 06 Nov 2022
    Release notes

    Fixed

    • Re-release 0.2.2 and correctly maintain no_std compatibility on Apple targets.
    Open source →
  6. 0.2.2 06 Nov 2022 withdrawn
    Release notes

    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.
    Open source →
  7. 0.2.1 17 Jun 2022
    Release notes

    Added

    • The crate now supports being used via WASM in a WebWorker environment.
    Open source →
  8. 0.2.0 01 Mar 2022
    Release notes

    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
    Open source →
  9. 0.1.0 13 May 2021

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive