All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- CI setup now covers almost all supported Tier 1 and Tier 2 platform targets
- Minimum Supported Rust version set to
1.67.0
- Rust edition set to "2021"
- Handle edge cases for POSIX systems (#14)
- docs.rs documentation build
- Enabling
hostname::set
doctests only if "set" feature is enabled (#10)
- Cargo feature
set
which enables thehostname::set
function compilation (disabled by default) - Note that
hostname::set
will fail the compilation for Android API < 23
hostname::set
is available only with Cargoset
feature enabled- Fix compilation issue for FreeBSD, DragonFlyBSD and iOS targets (#9)
- Deprecated function
get_hostname
was removed, useget
instead
- MSRV policy, Rust 1.19 version is set as minimally supported
get
function which returns the current hostname (replacesget_hostname
function)set
function which allows to change the hostname
- Windows implementation returns the DNS host name of local computer instead of the NetBIOS name
- Windows implementation works with the Unicode now instead of ANSI encoding
- Possible value truncation is handled for *nix implementation (#6)
get_hostname
function is deprecated and marked to be removed in the upcoming0.3.0
version