[package]
name = "readpassphrase-3"
version = "0.8.0"
edition = "2024"
rust-version = "1.85.1"
description = "Simple wrapper around readpassphrase(3)"
readme = "README.md"
repository = "https://github.com/mrdomino/readpassphrase-3"
license = "BSD-1-Clause"
keywords = ["getpass", "passphrase", "password", "tty"]
categories = ["command-line-interface"]

exclude = [
    ".githook/*",
    ".github/**",
    ".gitignore",
]

[[example]]
name = "pass"
path = "examples/pass.rs"
doc-scrape-examples = true

[[example]]
name = "inplace"
path = "examples/inplace.rs"

[[example]]
name = "owned"
path = "examples/owned.rs"

[features]
default = ["cc"]

[dependencies]
bitflags = "2"
zeroize = { version = "1", optional = true }

[build-dependencies]
cc = { version = "1", optional = true }

[dev-dependencies]
zeroize = "1"

[package.metadata.docs.rs]
features = ["zeroize"]
# XXX cc is crashing on mac and windows on docs.rs
no-default-features = true
