forked from juspay/hyperswitch-card-vault
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
123 lines (102 loc) · 3.04 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[package]
name = "tartarus"
version = "0.1.3"
edition = "2021"
default-run = "locker"
rust-version = "1.78"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["caching"]
release = ["kms-aws", "middleware", "key_custodian", "limit", "kms-hashicorp-vault", "caching", "keymanager_mtls"]
kms-aws = ["dep:aws-config", "dep:aws-sdk-kms"]
kms-hashicorp-vault = ["dep:vaultrs"]
limit = []
middleware = []
key_custodian = []
caching = ["dep:moka"]
keymanager_mtls = ["reqwest/rustls-tls"]
console = ["tokio/tracing", "dep:console-subscriber"]
[dependencies]
async-trait = "0.1.81"
aws-config = { version = "1.5.5", optional = true }
aws-sdk-kms = { version = "1.40.0", optional = true }
base64 = "0.22.1"
bytes = "1.7.1"
futures = "0.3.30"
gethostname = "0.5.0"
rustc-hash = "2.0"
once_cell = "1.19.0"
vaultrs = { version = "0.7.2", optional = true }
# Tokio Dependencies
tokio = { version = "1.39.3", features = ["macros", "rt-multi-thread"] }
axum = "0.7.5"
axum-server = { version = "0.7.1", features = ["tls-rustls"] }
hyper = "1.4.1"
tower = { version = "0.5.0", features = ["limit", "buffer", "load-shed"] }
tower-http = { version = "0.5.2", features = ["trace"] }
tracing = { version = "0.1.40" }
tracing-appender = { version = "0.2.3" }
tracing-attributes = "0.1.27"
tracing-subscriber = { version = "0.3.18", default-features = true, features = ["env-filter", "json", "registry"] }
console-subscriber = { version = "0.4.0", optional = true }
http-body-util = "0.1.2"
diesel = { version = "2.2.3", features = ["postgres", "serde_json", "time"] }
diesel-async = { version = "0.5.0", features = ["postgres", "deadpool"] }
serde = { version = "1.0.209", features = ["derive"] }
serde_json = "1.0.127"
josekit = "0.8.7"
thiserror = "1.0.63"
config = "0.14.0"
serde_path_to_error = "0.1.16"
error-stack = "0.5.0"
futures-util = "0.3.30"
digest = "0.10"
masking = { git = "https://github.com/juspay/hyperswitch", tag = "v1.111.1" }
ring = { version = "0.17.8", features = ["std"] }
hex = "0.4.3"
time = { version = "0.3.36", features = ["serde"] }
uuid = { version = "1.10.0", features = ["v4", "fast-rng"] }
moka = { version = "0.12.8", features = ["future"], optional = true }
reqwest = { version = "0.12.7", features = ["json", "__rustls"] }
argh = "0.1.12"
nanoid = "0.4.0"
[dev-dependencies]
rand = "0.8.5"
criterion = "0.5.1"
axum-test = "15.6.0"
[build-dependencies]
cargo_metadata = "0.18.1"
[[bin]]
name = "locker"
[[bin]]
name = "utils"
[profile.release]
strip = true
lto = true
codegen-units = 1
[[bench]]
name = "luhn-test"
harness = false
[[bench]]
name = "encryption"
harness = false
[[bench]]
name = "hashing"
harness = false
[lints.rust]
unsafe_code = "forbid"
rust_2018_idioms = { level = "warn", priority = -1 }
deprecated = "allow"
[lints.clippy]
as_conversions = "warn"
expect_used = "warn"
missing_panics_doc = "warn"
panic = "warn"
panic_in_result_fn = "warn"
panicking_unwrap = "warn"
todo = "warn"
unimplemented = "warn"
unreachable = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
use_self = "warn"