-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
59 lines (48 loc) · 1.4 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
[package]
name = "spow"
version = "0.4.0"
edition = "2021"
rust-version = "1.70.0"
license = "Apache-2.0"
authors = ["Sebastian Dobe <[email protected]"]
categories = ["algorithms", "wasm", "web-programming"]
keywords = ["hash", "security", "utility", "wasm", "web"]
description = "Proof of Work for the Server and Client + WASM"
readme = "README.md"
repository = "https://github.com/sebadob/spow"
[profile.test]
inherits = "release"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-musl", "aarch64-unknown-linux-musl", "wasm32-unknown-unknown"]
[features]
default = []
asm = ["sha2/asm"]
client = []
server = [
"dep:base64",
"dep:chrono",
"dep:serde",
"dep:thiserror",
"dep:getrandom",
]
[dependencies]
# common deps
nom = "7.1.3"
sha2 = { version = "0.10.8", features = [] }
# server
base64 = { version = "0.22.1", optional = true }
chrono = { version = "0.4.31", optional = true }
serde = { version = "1.0.193", optional = true, features = ["derive"] }
thiserror = { version = "1.0.50", optional = true }
# std deps
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
getrandom = { version = "0.2.11" }
# wasm deps
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2.11", optional = true, features = ["js"] }
[dev-dependencies]
criterion = { version = "0.5.1", features = ["html_reports"] }
rstest = "0.22.0"
[[bench]]
name = "main"
harness = false