[package]
edition = "2024"
rust-version = "1.85"
name = "host-identity"
version = "1.1.1"
authors = ["Elijah Zupancic <elijah@zupancic.name>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stable, collision-resistant host identity resolution across platforms, container runtimes, cloud providers, and Kubernetes"
documentation = "https://docs.rs/host-identity"
readme = "README.md"
keywords = [
"host-id",
"machine-id",
"identity",
"uuid",
"container",
]
categories = [
"os",
"os::unix-apis",
"os::windows-apis",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/dekobon/host-identity"
[features]
_transport = ["dep:http"]
aws = ["_transport"]
azure = ["_transport"]
container = []
default = ["container"]
digitalocean = ["_transport"]
gcp = ["_transport"]
hetzner = ["_transport"]
k8s = []
oci = ["_transport"]
openstack = ["_transport"]
[lib]
name = "host_identity"
path = "src/lib.rs"
[[example]]
name = "app_specific"
path = "examples/app_specific.rs"
[[example]]
name = "audit"
path = "examples/audit.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "config_driven"
path = "examples/config_driven.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "lxc_source"
path = "tests/lxc_source.rs"
[dependencies.hmac]
version = "0.12"
[dependencies.http]
version = "1"
optional = true
[dependencies.log]
version = "0.4"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2"
[dependencies.uuid]
version = "1"
features = [
"v3",
"v5",
]
[dependencies.zeroize]
version = "1"
features = ["derive"]
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.tempfile]
version = "3"
[target."cfg(windows)".dependencies.windows-registry]
version = "0.5"
[target."cfg(windows)".dependencies.windows-result]
version = "0.3"
[lints.clippy]
missing_errors_doc = "allow"
module_name_repetitions = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"