PackageTrack
Sign in Get early access

hostname

Cross-platform system's host name functions

0.4.2 195M downloads/mo #511 most downloaded on crates.io djc/hostname

What this package is like to depend on

Last release 8 months ago

28 Nov 2025

Release timing varies

gaps range from 6 weeks to 4.1 years

Some releases are documented

notes for 6 of 12 stable releases

Nothing withdrawn

no release was ever pulled

10 years old

12 releases · first in 2016

1 release in the last 12 months

see the full history below

Release timeline

12 releases · Dec 2016 to Nov 2025
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 12
  1. 0.4.2 28 Nov 2025
    Release notes

    What's Changed

    Open source →
  2. 0.4.1 08 Apr 2025
    Release notes

    What's Changed

    • Switch to windows-bindgen by @djc in #29
    Open source →
  3. 0.4.0 01 Apr 2024
    Release notes

    Added

    • CI setup now covers almost all supported Tier 1 and Tier 2 platform targets

    Changed

    • Minimum Supported Rust version set to 1.67.0
    • Rust edition set to "2021"

    Fixed

    • Handle edge cases for POSIX systems (#14)
    • docs.rs documentation build

    What's Changed

    • Upgrade rust edition and migrate dependices(cfg_if, windows_rs) by @mokeyish in #18
    • Handle posix hostname edge cases by @stoeckmann in #14
    • bump version-sync: 0.8 -> 0.9 by @wackbyte in #17
    Open source →
  4. 0.3.1 28 Feb 2020
    Release notes

    Fixed

    • Enabling hostname::set doctests only if "set" feature is enabled (#10)
    Open source →
  5. 0.3.0 19 Dec 2019
    Release notes

    Added

    • Cargo feature set which enables the hostname::set function compilation (disabled by default)
    • Note that hostname::set will fail the compilation for Android API < 23

    Changed

    • hostname::set is available only with Cargo set feature enabled
    • Fix compilation issue for FreeBSD, DragonFlyBSD and iOS targets (#9)
    • Deprecated function get_hostname was removed, use get instead
    Open source →
  6. 0.2.0 09 Nov 2019
    Release notes

    hostname crate is now officially revived, see CHANGELOG for details: https://github.com/svartalf/hostname/blob/master/CHANGELOG.md#020---2019-11-09

    Open source →
  7. 0.1.5 25 May 2018

    Nothing published for this version

  8. 0.1.4 19 Dec 2017

    Nothing published for this version

  9. 0.1.3 09 Feb 2017

    Nothing published for this version

  10. 0.1.2 13 Dec 2016

    Nothing published for this version

  11. 0.1.1 13 Dec 2016

    Nothing published for this version

  12. 0.1.0 13 Dec 2016

    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