-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
54 lines (49 loc) · 2.44 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
52
53
54
[package]
authors = ["Alexi Peck"]
categories = []
description = "A library of functions, traits, serde implementations for error handling, logging, hashing and datetime's."
edition = "2021"
exclude = ["/target", "main.rs"]
license = "MIT"
name = "peck-lib"
repository = "https://github.com/alexipeck/peck-lib/"
version = "1.2.0"
[features]
complete = ["datetime", "env", "hashing", "http", "locking", "logging", "smtp", "uid", "crypto", "auth"]
default = []
auth = ["serde", "serde_json", "rsa", "email_address", "aead", "datetime", "chrono", "thiserror"]
crypto = ["blake3", "rand", "rand_chacha", "rand_core", "chrono"]
datetime = []
env = []
hashing = ["blake3"]
http = ["reqwest", "thiserror", "serde", "serde_json", "tracing", "lazy_static"]
#http_wasm = ["reqwest-wasm", "thiserror", "serde", "serde_json", "tracing"]
locking = ["tokio", "parking_lot", "futures-util"]
logging = ["chrono", "serde", "tracing", "tracing-subscriber", "tokio", "reqwest"]
smtp = ["lettre", "thiserror"]
uid = ["tokio", "uuid", "thiserror", "bloom"]
[dependencies]
aead = {version = "0.5.2", features = ["getrandom"], optional = true}
blake3 = {version = "1.5.4", optional = true}
chrono = {version = "0.4.38", optional = true}
email_address = {version = "0.2.9", features = ["serde_support"], optional = true}
futures-util = {version = "0.3.30", optional = true}
lazy_static = {version = "1.5.0", optional = true}
lettre = {version = "0.11.8", optional = true}
parking_lot = {version = "0.12.3", optional = true}
rand = {version = "0.8.5", optional = true}
rand_chacha = {version = "0.3.1", optional = true}
rand_core = {version = "0.6.4", features = ["getrandom"], optional = true}
rsa = {version = "0.9.6", features = ["sha2", "serde", "std"], optional = true}
serde = {version = "1.0.209", features = ["derive"], optional = true}
serde_json = {version = "1.0.127", optional = true}
thiserror = {version = "1.0.63", optional = true}
tokio = {version = "1.40.0", features = ["sync"], optional = true}
tracing = {version = "0.1.40", optional = true}
tracing-subscriber = {version = "0.3.18", optional = true}
uuid = {version = "1.10.0", features = ["js", "v4", "serde"], optional = true}
bloom = {version = "0.3.2", optional = true}
[target.'cfg(target_arch = "wasm32")'.dependencies]
reqwest-wasm = {version = "0.11.16", features = ["json", "cookies", "gzip"]}
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
reqwest = {version = "0.12.7", features = ["json", "cookies", "gzip"], optional = true}