-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathCargo.toml
More file actions
97 lines (86 loc) · 3.03 KB
/
Cargo.toml
File metadata and controls
97 lines (86 loc) · 3.03 KB
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
[workspace]
# https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html#details
resolver = "2"
members = [
"packages/kos",
"packages/kos-mobile",
"packages/kos-web",
"packages/kos-hardware",
"packages/kos-codec",
]
# This makes the compiled code faster and smaller, but it makes compiling slower,
# so it's only enabled in release mode.
# lto = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.hardware]
inherits = "release"
opt-level = 'z' # Optimize for size
lto = true # Enable Link Time Optimization
panic = 'abort' # Generally reduces size for embedded systems
codegen-units = 1 # more aggressive code merging
strip = true # Strip symbols from the final binary
[profile.mobile]
inherits = "release"
lto = true
opt-level = "z" # Optimize for size.
codegen-units = 1 # Reduce Parallel Code Generation Units to Increase Optimization
panic = "abort" # Abort on panic, as unwinding code does require extra binary size
rpath = true
[profile.min-size]
inherits = "release"
opt-level = "s" # Optimize for size (s is often better for libs than z)
strip = "symbols" # Strip symbols from binary
panic = "abort" # Abort on panic
codegen-units = 1 # More aggressive code merging
lto = false # LTO can increase static lib size
overflow-checks = false # Disable overflow checks for size
debug = 0 # No debug info
incremental = false # Disable incremental compilation
[workspace.package]
authors = ["Klever <kos@klever.io>"]
edition = "2021"
homepage = "https://klever.org/"
license = "Apache-2.0"
repository = "https://github.com/kleverio/kos-rs"
rust-version = "1.74.0"
version = "0.2.39"
[workspace.dependencies]
bech32 = "0.9.1"
sha2 = { version = "0.10" }
sha3 = { version = "0.10" }
hmac = { version = "0.12" }
secp256k1 = { version = "0.27", features = [
"recovery",
"rand",
"bitcoin_hashes",
] }
ed25519-dalek = { version = "2" }
coins-bip32 = { version = "0.8", default-features = false }
coins-bip39 = { version = "0.8", default-features = false, features = [
"english",
] }
bytes = { version = "1.11.1", default-features = false }
hex = { version = "0.4.3", default-features = false }
rand = "0.8"
prost = "0.11"
prost-types = "0.11"
lazy_static = "1.4.0"
reqwest = { version = "0.12", default-features = false, features = [
"rustls-tls",
"blocking",
"json",
] }
wasm-bindgen = "0.2"
uniffi = { version = "0.28.1" }
enum_delegate = "0.2"
serde = { version = "1.0", default-features = false }
serde_json = "1.0"
thiserror = "1.0"
kos-mobile = { version = "0.1.0", path = "./packages/kos-mobile", default-features = false }
ecies = { version = "0.2.7", default-features = false, features = ["pure"] }
kos = { version = "0.2.39", path = "./packages/kos", default-features = false, features = ["not-ksafe"] }
# lightning
lwk_common = "0.9.0"
lwk_signer = "0.9.0"
# lwk_wollet = { git = "https://github.com/breez/lwk", branch = "breez-sdk-liquid-0.6.3" }
lwk_wollet = "0.9.0"