[package]
edition = "2024"
rust-version = "1.85"
name = "host-identity-cli"
version = "1.1.1"
authors = ["Elijah Zupancic <elijah@zupancic.name>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Command-line interface for host-identity: print a stable host UUID across platforms, clouds, and Kubernetes"
documentation = "https://docs.rs/host-identity-cli"
readme = "README.md"
keywords = [
"host-id",
"machine-id",
"identity",
"uuid",
"cli",
]
categories = ["command-line-utilities"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/dekobon/host-identity"
[package.metadata.deb]
assets = [
[
"target/release/host-identity",
"usr/bin/",
"755",
],
[
"../../man/host-identity.1",
"usr/share/man/man1/",
"644",
],
[
"../../man/host-identity-audit.1",
"usr/share/man/man1/",
"644",
],
[
"../../man/host-identity-resolve.1",
"usr/share/man/man1/",
"644",
],
[
"../../man/host-identity-sources.1",
"usr/share/man/man1/",
"644",
],
[
"../../README.md",
"usr/share/doc/host-identity/README.md",
"644",
],
[
"../../LICENSE-APACHE",
"usr/share/doc/host-identity/LICENSE-APACHE",
"644",
],
[
"../../LICENSE-MIT",
"usr/share/doc/host-identity/LICENSE-MIT",
"644",
],
[
"../../THIRD-PARTY-LICENSES.md",
"usr/share/doc/host-identity/THIRD-PARTY-LICENSES.md",
"644",
],
]
extended-description = """
Print a stable host UUID across platforms, clouds, and Kubernetes.
host-identity resolves a deterministic UUID for a machine by walking
a set of sources (machine-id, DMI product UUID, cloud metadata,
container identifiers, Kubernetes node/pod UIDs) and returning the
first one that proves the host's identity."""
maintainer = "Elijah Zupancic <elijah@zupancic.name>"
name = "host-identity"
priority = "optional"
section = "utils"
[package.metadata.generate-rpm]
auto-req = "disabled"
license = "Apache-2.0 OR MIT"
name = "host-identity"
summary = "Stable host UUID across platforms, clouds, and Kubernetes"
url = "https://github.com/dekobon/host-identity"
vendor = "Elijah Zupancic"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/bin/host-identity"
mode = "755"
source = "../../target/release/host-identity"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/man/man1/host-identity.1"
mode = "644"
source = "../../man/host-identity.1"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/man/man1/host-identity-audit.1"
mode = "644"
source = "../../man/host-identity-audit.1"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/man/man1/host-identity-resolve.1"
mode = "644"
source = "../../man/host-identity-resolve.1"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/man/man1/host-identity-sources.1"
mode = "644"
source = "../../man/host-identity-sources.1"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/doc/host-identity/README.md"
doc = true
mode = "644"
source = "../../README.md"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/doc/host-identity/LICENSE-APACHE"
mode = "644"
source = "../../LICENSE-APACHE"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/doc/host-identity/LICENSE-MIT"
mode = "644"
source = "../../LICENSE-MIT"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/share/doc/host-identity/THIRD-PARTY-LICENSES.md"
mode = "644"
source = "../../THIRD-PARTY-LICENSES.md"
[features]
container = ["host-identity/container"]
default = [
"container",
"network",
]
network = [
"dep:ureq",
"dep:http",
"host-identity/aws",
"host-identity/gcp",
"host-identity/azure",
"host-identity/digitalocean",
"host-identity/hetzner",
"host-identity/oci",
"host-identity/openstack",
"host-identity/k8s",
]
[lib]
name = "host_identity_cli"
path = "src/lib.rs"
[[bin]]
name = "host-identity"
path = "src/main.rs"
[[test]]
name = "app_specific"
path = "tests/app_specific.rs"
[[test]]
name = "host_identity_file_env"
path = "tests/host_identity_file_env.rs"
[dependencies.anyhow]
version = "1"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.host-identity]
version = "1.1.1"
default-features = false
[dependencies.http]
version = "1"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.ureq]
version = "2"
optional = true
[lints.clippy]
missing_errors_doc = "allow"
module_name_repetitions = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"