-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathCargo.toml
82 lines (73 loc) · 2.35 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
[package]
name = "lwk_wasm"
version = "0.8.5"
edition = "2021"
description = "Liquid Wallet Kit - WASM"
license = "MIT OR BSD-2-Clause"
documentation = "https://docs.rs/lwk_wasm"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["console_error_panic_hook"]
serial = ["web-sys"]
[dependencies]
lwk_jade = { version = "0.8.0", default-features = false, features = [
"asyncr",
] }
lwk_signer = { version = "0.8.0", default-features = false }
lwk_wollet = { version = "0.8.0", default-features = false, features = [
"esplora",
"amp2",
] }
lwk_common = "0.8.0"
wasm-bindgen = "0.2.84"
serde_json = "1"
serde = { version = "1.0", features = ["derive"] }
# 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.7", optional = true }
reqwest = { version = "0.12", default-features = false, features = [
"charset",
"http2",
"macos-system-configuration",
"blocking",
"json",
"rustls-tls",
] }
wasm-bindgen-futures = "0.4.41"
wasm-bindgen-test = "0.3.34"
serde-wasm-bindgen = "0.6.3"
thiserror = "1.0.57"
# the web-sys dependency declares different features according if it's compiled for wasm/doc or not
# This is because all serial-related features are experimental and they required specific RUSTFLAGS
# we don't want to specify unless it is strictly necessary.
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3.69", optional = true, features = [
"ReadableStreamDefaultReader",
"WritableStreamDefaultWriter",
"SerialPort",
"SerialOptions",
"Navigator",
"Serial",
"ReadableStream",
"WritableStream",
"SerialPortRequestOptions",
] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
web-sys = { version = "0.3.69", optional = true, features = [
"ReadableStreamDefaultReader",
"WritableStreamDefaultWriter",
"Navigator",
"ReadableStream",
"WritableStream",
] }
[dev-dependencies]
wasm-bindgen-test = "0.3.34"
[package.metadata.wasm-pack.profile.profiling]
wasm-opt = ['-O', '--debuginfo']
[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "web_sys_unstable_apis"]
rustdoc-args = ["--cfg", "docsrs"]