# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "petname"
version = "3.0.1"
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.binstall]
pkg-fmt = "bin"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]

[features]
default = [
    "clap",
    "default-rng",
    "default-words",
    "macros",
]
default-rng = ["rand/thread_rng"]
default-words = ["macros"]
lang-turkish = []
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.tempfile]
version = "3"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]

[profile.release]
opt-level = "z"
lto = true
strip = true
