-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathCargo.toml
109 lines (96 loc) · 2.93 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
[package]
name = "account_sdk"
edition.workspace = true
version.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["lib"]
[dependencies]
anyhow.workspace = true
async-trait.workspace = true
auto_impl = "1.0"
cainome.workspace = true
cainome-cairo-serde.workspace = true
futures.workspace = true
hex.workspace = true
lazy_static.workspace = true
primitive-types.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_with.workspace = true
starknet.workspace = true
starknet-crypto.workspace = true
starknet-types-core.workspace = true
thiserror.workspace = true
toml.workspace = true
u256-literal.workspace = true
url.workspace = true
indexmap.workspace = true
num-traits.workspace = true
rand = { version = "0.8", optional = true }
tsify-next = "0.5.4"
urlencoding = "2.1.3"
once_cell.workspace = true
# Webauthn deps
base64 = { workspace = true, optional = true }
base64urlsafedata = { workspace = true, optional = true }
coset = { workspace = true, optional = true }
ecdsa = { workspace = true, optional = true }
nom = { version = "7.1", optional = true }
p256 = { workspace = true, optional = true }
serde_cbor_2 = { version = "0.12.0-dev", optional = true }
sha2 = { workspace = true, optional = true }
# Filestorage deps
dirs = { version = "5", optional = true }
[dev-dependencies]
hyper = { version = "0.14.27", features = ["server"] }
rand_core = { version = "0.6", features = ["getrandom"] }
tempfile = "3.8"
[build-dependencies]
cainome.workspace = true
starknet.workspace = true
serde_json.workspace = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio.workspace = true
# Include webauthn dependencies when 'webauthn' feature is enabled
webauthn-authenticator-rs = { workspace = true, features = [
"softpasskey",
], optional = true }
webauthn-rs-core = { workspace = true, optional = true }
webauthn-rs-proto = { workspace = true, optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3.70"
serde-wasm-bindgen.workspace = true
wasm-bindgen-futures.workspace = true
wasm-bindgen.workspace = true
wasm-bindgen-test = "0.3.34"
web-sys = { version = "0.3", features = ["console", "Storage"] }
# Include webauthn dependencies when 'webauthn' feature is enabled
webauthn-rs-proto = { workspace = true, optional = true, features = ["wasm"] }
[features]
bench = ["rand"]
webauthn = [
"base64",
"base64urlsafedata",
"coset",
"ecdsa",
"nom",
"p256",
"serde_cbor_2",
"sha2",
"webauthn-authenticator-rs",
"webauthn-rs-core",
"webauthn-rs-proto",
"web-sys/CredentialCreationOptions",
"web-sys/CredentialRequestOptions",
"web-sys/CredentialsContainer",
"web-sys/Navigator",
"web-sys/PublicKeyCredential",
"web-sys/PublicKeyCredentialCreationOptions",
]
filestorage = ["dirs"]
[[bin]]
name = "bench"
path = "cmd/bench.rs"
required-features = ["bench"]