PackageTrack
Sign in Get early access

gethostname

gethostname for all platforms

1.1.0 109M downloads/mo #765 most downloaded on crates.io source

What this package is like to depend on

Last release 10 months ago

14 Oct 2025

Release timing varies

gaps range from 3 weeks to 1.1 years

Nearly every release is documented

notes for 14 of 15 stable releases

Nothing withdrawn

no release was ever pulled

8 years old

15 releases · first in 2019

1 release in the last 12 months

see the full history below

Release timeline

15 releases · Jan 2019 to Oct 2025
2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 15
  1. 1.1.0 14 Oct 2025
    Release notes

    Changed

    • Use windows-link instead of windows-targets (see CB-22).
    • Bump MSRV to 1.71 (see CB-22).
    Open source →
  2. 1.0.2 01 May 2025
    Release notes

    Changed

    Open source →
  3. 1.0.1 25 Mar 2025
    Release notes

    Changed

    • gethostname now has a must_use attribute.
    • Update rustix dependency to version 1.
    Open source →
  4. 1.0.0 01 Feb 2025
    Release notes

    We can safely declare this stable now.

    Open source →
  5. 0.5.0 06 Jul 2024
    Release notes

    Changed

    • On Unix, use rustix to provide a simple implementation of gethostname without unsafe (see GH-10 and GH-17).
    Open source →
  6. 0.4.3 13 May 2023
    Release notes

    Changed

    • Removed the windows dependency in favor of using embedded bindings, see GH-11.
    Open source →
  7. 0.4.2 13 Apr 2023
    Release notes

    Changed

    • Update dependencies.
    Open source →
  8. 0.4.1 01 Dec 2022
    Release notes

    Changed

    Open source →
  9. 0.4.0 28 Oct 2022
    Release notes

    Changed

    • Replace winapi with windows-rs, see GH-7.
    • Bump MSRV to 1.64 as required by windows-rs, see GH-7.
    Open source →
  10. 0.3.0 09 Oct 2022
    Release notes

    Changed

    • Bump MSRV to 1.56.
    Open source →
  11. 0.2.3 12 Mar 2022
    Release notes

    Changed

    • Limit gethostname() to cfg(unix) and cfg(windows) to provide more useful build failures on other platforms.
    Open source →
  12. 0.2.2 14 Jan 2022

    Nothing published for this version

  13. 0.2.1 18 Dec 2019
    Release notes

    Changed

    • Consolidate documetation.
    • Update crates.io metadata.
    Open source →
  14. 0.2.0 22 Jan 2019
    Release notes

    Added

    • Add Windows implementation (see GH-1).

    Changed

    • Pin supported Rust version to 1.31
    Open source →
  15. 0.1.0 20 Jan 2019
    Release notes

    Initial release.

    Added

    • gethostname() for non-Windows platforms.
    Open source →

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