-
Notifications
You must be signed in to change notification settings - Fork 178
Expand file tree
/
Copy pathCargo.toml
More file actions
86 lines (71 loc) · 2.08 KB
/
Cargo.toml
File metadata and controls
86 lines (71 loc) · 2.08 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
[package]
name = "clarinet-sdk-wasm"
version.workspace = true
edition = "2021"
license = "GPL-3.0"
repository = "https://github.com/stx-labs/clarinet"
description = "The core lib that powers @stacks/clarinet-sdk"
[lib]
crate-type = ["cdylib"]
name = "clarinet_sdk"
path = "src/lib.rs"
[dependencies]
clarity = { workspace = true, default-features = false }
console_error_panic_hook = { version = "0.1" }
gloo-utils = { version = "0.2.0", features = ["serde"] }
js-sys = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
serde-wasm-bindgen = { workspace = true }
wasm-bindgen = { workspace = true }
wasm-bindgen-futures = { workspace = true }
web-sys = { workspace = true, features = ["console"] }
clarinet-defaults = { workspace = true }
clarinet-files = { path = "../clarinet-files", default-features = false }
clarity-repl = { path = "../clarity-repl", default-features = false }
clarinet-deployments = { path = "../clarinet-deployments", default-features = false }
[dev-dependencies]
wasm-bindgen-test = "0.3.0"
[features]
default = []
web = [
"clarity-repl/web",
]
# DEV
[profile.dev]
opt-level = 3
debug = false
debug-assertions = false
incremental = false
codegen-units = 256
[package.metadata.wasm-pack.profile.dev]
wasm-opt = false
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
debug-js-glue = false
demangle-name-section = true
dwarf-debug-info = false
# RELEASE
[profile.release]
opt-level = "s"
debug = false
debug-assertions = false
lto = true
incremental = false
codegen-units = 16
[package.metadata.wasm-pack.profile.release]
wasm-opt = ['-Oz']
[package.metadata.wasm-pack.profile.release.wasm-bindgen]
debug-js-glue = false
demangle-name-section = true
dwarf-debug-info = false
# profiling
[profile.profiling]
debug = 1
[package.metadata.wasm-pack.profile.profiling]
wasm-opt = ['-g', '-O']
[package.metadata.wasm-pack.profile.profiling.wasm-bindgen]
debug-js-glue = false
demangle-name-section = true
dwarf-debug-info = false
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] }