-
Notifications
You must be signed in to change notification settings - Fork 17
/
Cargo.toml
57 lines (47 loc) · 1.56 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
[package]
name = "tzprofiles_witness"
version = "0.1.0"
authors = ["Spruce Systems, Inc."]
edition = "2018"
license = "Apache-2.0"
resolver = "2"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = { version = "0.3", features = ["console"] }
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1" }
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
# compared to the default allocator's ~10K. It is slower than the default
# allocator, however.
wee_alloc = { version = "0.4" }
ssi = { path = "../../ssi", default-features = false, features = ["ed25519-dalek", "sha", "secp256k1", "secp256r1"] }
did-web = { path = "../../ssi/did-web" }
blake2b_simd = "0.5"
bs58 = { version = "0.4", features = ["check"] }
anyhow = "1"
serde = "1"
serde_json = "1"
reqwest = { version = "=0.11.2", features = ["json"] }
url = "2.2"
chrono = { version = "0.4", features = ["serde", "wasmbind"] }
uuid = { version = "0.8", features = ["serde", "v4", "stdweb"] }
regex = "1"
log = "0.4"
console_log = "0.2"
[dev-dependencies]
wasm-bindgen-test = "0.3"
[profile.release]
# Tell `rustc` to optimize for small code size.
# lto = true
opt-level = "z"
# codegen-units = 1
[package.metadata.wasm-pack.profile.profiling]
wasm-opt = ['-g', '-O']
# opt-level = "z"