[package] name = "hostname" version = "0.4.0" description = "Cross-platform system's host name functions" categories = ["api-bindings", "os"] keywords = ["hostname", "gethostname", "sethostname"] authors = [ "fengcen ", "svartalf " ] repository = "https://github.com/svartalf/hostname" readme = "README.md" license = "MIT" edition = "2021" rust-version = "1.67" [features] default = [] # Enables the `hostname::set` function set = [] [dependencies] cfg-if = "^1.0" [target.'cfg(any(unix, target_os = "redox"))'.dependencies] libc = "^0.2" [target.'cfg(target_os = "windows")'.dependencies] windows = { version = "^0.52", features = ["Win32_Foundation", "Win32_System_SystemInformation"] } [dev-dependencies] version-sync = "0.9" [package.metadata.docs.rs] features = ["set"] rustdoc-args = ["--cfg", "docsrs"]