-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
67 lines (57 loc) · 1.75 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
[package]
name = "elasticpoll-wasm"
version = "0.0.0"
authors = ["Alex Ostrovski <ostrovski.alex@gmail.com>"]
edition = "2021"
license = "Apache-2.0"
description = "Cryptographically secure polling web app"
repository = "https://github.com/slowli/elasticpoll.app"
publish = false
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-Os", "--enable-mutable-globals"]
[package.metadata.wasm-pack.profile.dev]
# This is necessary because webpack does not process long symbols correctly.
# TODO: better way?
wasm-opt = ["--strip-debug", "--enable-mutable-globals"]
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
base64ct = { version = "1.6.0", features = ["std"] }
js-sys = "0.3.69"
merlin = "3.0.0"
rand_core = "0.6.3"
secrecy = "0.8.0"
secret-tree = "0.5.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde-wasm-bindgen = "0.6.5"
sha2 = "0.10.8"
wasm-bindgen = "0.2.89"
wasm-bindgen-futures = "0.4.42"
web-sys = { version = "0.3.69", features = ["NodeList", "HtmlButtonElement"] }
yew = { version = "0.21.0", features = ["csr"] }
yew-router = "0.18.0"
# Set up `getrandom` crate to use the host JS CSPRNG.
getrandom = { version = "0.2", features = ["custom"] }
[dependencies.elastic-elgamal]
version = "0.3.0"
default-features = false
features = ["std", "curve25519-dalek", "serde"]
[dev-dependencies]
assert_matches = "1.5.0"
gloo-timers = { version = "0.3.0", features = ["futures"] }
rand = "0.8.4"
wasm-bindgen-test = "0.3.42"
[build-dependencies]
regex = "1.10.4"
serde = { version = "1.0", features = ["derive"] }
toml = "0.8.12"
[features]
default = []
# Enables functionality necessary for integration testing.
testing = []
[profile.release]
panic = "abort"
codegen-units = 1
opt-level = "z" # Optimize for size, rather than speed
lto = true