ardaku/whoami

1.5.0 Release

AldaronLau opened this issue · 1 comments

Any pre-release bugs, typos, or other issues can be reported in the comments. Official testing will happen before 1.5.0 release.

All pre-releases will be announced in the comments here.

Released 1.5.0-pre.0: https://crates.io/crates/whoami/1.5.0-pre.0

https://docs.rs/whoami/1.5.0-pre.0/

Changelog

Added

  • WASI support
  • Fallible functions
    • whoami::fallible::devicename()
    • whoami::fallible::devicename_os()
    • whoami::fallible::distro()
    • whoami::fallible::hostname() - notably doesn't normalize to lowercase
    • whoami::fallible::realname()
    • whoami::fallible::realname_os()
    • whoami::fallible::username()
    • whoami::fallible::username_os()
  • whoami::langs()
  • Language
  • Country

Removed

  • Generated device names that infer casing based on the hostname when the device name is not available - now returns the hostname unchanged

Changed

  • Deprecated whoami::distro_os()
  • Deprecated whoami::hostname()
  • Deprecated whoami::hostname_os()
  • Deprecated whoami::lang()

Fixed

  • Removed some unnecessary allocations
  • Rare and nearly impossible cases of undefined behavior
  • Better handling of UTF-8 non-conformant strings