[package]
edition = "2021"
name = "petname"
version = "3.0.0"
authors = ["Gavin Panella <gavin@allenap.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generate human readable random names. Usable as a library and from the command-line."
readme = "README.md"
keywords = [
"pet",
"name",
"rand",
"random",
"generator",
]
categories = [
"command-line-utilities",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/allenap/rust-petname"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[features]
default = [
"clap",
"default-rng",
"default-words",
"macros",
]
default-rng = ["rand/thread_rng"]
default-words = ["macros"]
macros = ["dep:petname-macros"]
[lib]
name = "petname"
path = "src/lib.rs"
[[bin]]
name = "petname"
path = "src/main.rs"
doc = false
required-features = [
"clap",
"default-rng",
"default-words",
]
[[test]]
name = "alliterations"
path = "tests/alliterations.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "mocks"
path = "tests/mocks.rs"
[[test]]
name = "petname"
path = "tests/petname.rs"
[[test]]
name = "petnames"
path = "tests/petnames.rs"
[dependencies.clap]
version = "4"
features = [
"cargo",
"derive",
]
optional = true
[dependencies.petname-macros]
version = "3.0.0"
optional = true
[dependencies.rand]
version = "0.10"
default-features = false
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.rand_core]
version = "0.10"
[dev-dependencies.tempdir]
version = "0.3"
[profile.release]
opt-level = "z"
lto = true
strip = true