-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
51 lines (46 loc) · 1.76 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[package]
name = "djangohashers"
version = "1.7.4"
authors = ["Ronaldo Racum <ronaldo@racum.com>"]
documentation = "https://docs.rs/djangohashers/"
license = "BSD-3-Clause"
readme = "README.md"
homepage = "https://github.com/racum/rust-djangohashers"
repository = "https://github.com/racum/rust-djangohashers"
keywords = ["hash", "password", "python", "django", "crypto"]
categories = ["algorithms", "authentication", "cryptography"]
description = "A Rust port of the password primitives used in Django project."
edition = "2021"
[lib]
doc = true
doctest = false
bench = true
[profile.dev.package."*"]
opt-level = 1
[features]
default = ["with_pbkdf2", "with_argon2", "with_scrypt", "with_bcrypt", "with_legacy"]
with_pbkdf2 = ["base64", "constant_time_eq", "ring"]
with_argon2 = ["base64", "constant_time_eq", "rust-argon2"]
with_scrypt = ["base64", "constant_time_eq", "scrypt"]
with_bcrypt = ["bcrypt", "sha2"]
with_legacy = ["pwhash", "constant_time_eq", "md-5", "sha-1", "hex_fmt"]
fpbkdf2 = ["base64", "constant_time_eq", "fastpbkdf2"]
fuzzy_tests = []
[dependencies]
rand = "^0.8"
regex = "^1.0"
lazy_static = "^1.0"
md-5 = { version = "^0.10", optional = true }
sha-1 = { version = "^0.10", optional = true }
sha2 = { version = "^0.10", optional = true }
ring = { version = "^0.17", default-features = false, optional = true }
bcrypt = { version = "^0.15", optional = true }
base64 = { version = "^0.22", optional = true }
pwhash = { version = "^1.0", default-features = false, optional = true }
fastpbkdf2 = { version = "^0.1", optional = true }
rust-argon2 = { version = "^2.0", optional = true }
scrypt = { version = "^0.11", optional = true }
constant_time_eq = { version = "^0.3", optional = true }
hex_fmt = { version = "^0.3", optional = true }
[dev-dependencies]
quickcheck = "^1.0"