[package]
edition = "2024"
rust-version = "1.85"
name = "yescrypt"
version = "0.1.0"
authors = ["RustCrypto Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust implementation of the yescrypt password-based key derivation function"
homepage = "https://github.com/RustCrypto/password-hashes/tree/master/yescrypt"
documentation = "https://docs.rs/yescrypt"
readme = "README.md"
keywords = [
"crypto",
"hashing",
"password",
"phf",
]
categories = [
"authentication",
"cryptography",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/RustCrypto/password-hashes"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["getrandom"]
getrandom = [
"password-hash",
"password-hash/getrandom",
]
kdf = ["dep:kdf"]
password-hash = [
"dep:mcf",
"dep:password-hash",
]
rand_core = ["password-hash/rand_core"]
[lib]
name = "yescrypt"
path = "src/lib.rs"
[[test]]
name = "kats"
path = "tests/kats.rs"
[[test]]
name = "mcf"
path = "tests/mcf.rs"
[dependencies.ctutils]
version = "0.4"
[dependencies.hmac]
version = "0.13"
default-features = false
[dependencies.kdf]
version = "0.1"
optional = true
[dependencies.mcf]
version = "0.6"
features = [
"alloc",
"base64",
]
optional = true
default-features = false
[dependencies.password-hash]
version = "0.6"
optional = true
default-features = false
[dependencies.pbkdf2]
version = "0.13"
features = ["hmac"]
default-features = false
[dependencies.salsa20]
version = "0.11"
default-features = false
[dependencies.sha2]
version = "0.11"
default-features = false
[dev-dependencies.hex-literal]
version = "1"
[lints.clippy]
borrow_as_ptr = "warn"
cast_lossless = "warn"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "warn"
cast_sign_loss = "warn"
checked_conversions = "warn"
doc_markdown = "warn"
from_iter_instead_of_collect = "warn"
implicit_saturating_sub = "warn"
manual_assert = "warn"
map_unwrap_or = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
mod_module_files = "warn"
must_use_candidate = "warn"
needless_range_loop = "allow"
ptr_as_ptr = "warn"
redundant_closure_for_method_calls = "warn"
ref_as_ptr = "warn"
return_self_not_must_use = "warn"
semicolon_if_nothing_returned = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
trivially_copy_pass_by_ref = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unwrap_used = "warn"
[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"