Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
57 lines (49 loc) · 1.61 KB
/
Copy pathCargo.toml
File metadata and controls
57 lines (49 loc) · 1.61 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
[package]
edition = "2024"
name = "rgb-consignment"
version = "0.1.0"
description = "RGB consignment utils"
license = "Apache-2.0"
[workspace.dependencies]
amplify = { version = "4.8.1", default-features = false }
clap = { version = "4.5.4", features = ["derive"] }
env_logger = "0.11.3"
log = "0.4.21"
rgb-ops = { version = "0.11.1-rc.10", default-features = false, features = [
"serde",
] }
rgb-strict-types = "1.0.1"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.115"
thiserror = "2.0"
[lib]
name = "rgb_consignment"
crate-type = ["rlib", "cdylib", "staticlib"]
[features]
default = ["cli"]
cli = ["dep:clap", "dep:env_logger", "dep:log"]
[dependencies]
amplify.workspace = true
clap = { workspace = true, optional = true }
env_logger = { workspace = true, optional = true }
log = { workspace = true, optional = true }
rgb-ops.workspace = true
rgb-strict-types.workspace = true
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
[[bin]]
name = "rgb-consignment"
required-features = ["cli"]
[profile.release]
strip = "debuginfo"
# Profile for the static archive shipped with the Go binding
# (scripts/build-lib.sh). LTO only takes effect when the staticlib is the sole
# crate type, hence `cargo rustc --crate-type staticlib` there; it internalises
# everything except the C ABI and drops the rest (56 MB -> ~11 MB). Thin LTO
# builds in ~1.5 min; fat saves another 2 MB but takes ~15 min.
# `panic = "unwind"` (the default) must stay: the C ABI turns panics into
# error strings via catch_unwind instead of aborting the host process.
[profile.lib]
inherits = "release"
lto = "thin"