[package]
edition = "2024"
rust-version = "1.89"
name = "bcrypt-rust"
version = "1.0.2"
build = "build.rs"
exclude = [
"/.github",
"/fuzz",
"/crypt_blowfish",
"/docs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust bcrypt with runtime-dispatched SIMD backends for batch hashing"
homepage = "https://github.com/Brooooooklyn/bcrypt-rust"
documentation = "https://docs.rs/bcrypt-rust"
readme = "README.md"
keywords = [
"bcrypt",
"password-hash",
"simd",
"crypto",
"blowfish",
]
categories = [
"cryptography",
"no-std",
]
license = "MIT"
repository = "https://github.com/Brooooooklyn/bcrypt-rust"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
alloc = []
default = [
"std",
"zeroize",
]
internal-api = []
parallel = ["std"]
std = ["alloc"]
zeroize = []
[lib]
name = "bcrypt_rust"
path = "src/lib.rs"
[[test]]
name = "backends"
path = "tests/backends.rs"
[[test]]
name = "differential"
path = "tests/differential.rs"
[[test]]
name = "readme"
path = "tests/readme.rs"
[[test]]
name = "vectors"
path = "tests/vectors.rs"
[[bench]]
name = "base64"
path = "benches/base64.rs"
harness = false
[[bench]]
name = "bcrypt"
path = "benches/bcrypt.rs"
harness = false
[[bench]]
name = "codspeed"
path = "benches/codspeed.rs"
harness = false
[[bench]]
name = "micro"
path = "benches/micro.rs"
harness = false
[[bench]]
name = "vs_bcrypt"
path = "benches/vs_bcrypt.rs"
harness = false
[dependencies]
[dev-dependencies]
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.bcrypt]
version = "0.19.3"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.codspeed-criterion-compat]
version = "5.0.1"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[profile.bench]
opt-level = 3
lto = "thin"
codegen-units = 1
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1