-
Notifications
You must be signed in to change notification settings - Fork 178
Expand file tree
/
Copy pathCargo.toml
More file actions
55 lines (46 loc) · 1.55 KB
/
Cargo.toml
File metadata and controls
55 lines (46 loc) · 1.55 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
[package]
name = "clarity-lsp"
version.workspace = true
edition = "2021"
[dependencies]
lsp-types = "0.97.0"
regex = "1.7"
serde = { version = "1", features = ["derive"] }
serde_json = "1.0"
clarinet-format = { path = "../clarinet-format" }
clarinet-files = { path = "../clarinet-files" }
clarity-repl = { path = "../clarity-repl", default-features = false }
clarinet-deployments = { path = "../clarinet-deployments" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = { version = "0.1" }
js-sys = { version = "0.3" }
serde-wasm-bindgen = { version = "0.6.4" }
wasm-bindgen = { workspace = true }
wasm-bindgen-futures = { workspace = true }
web-sys = { workspace = true, features = ["console"] }
clarity-repl = { path = "../clarity-repl", default-features = false, features = ["web"] }
[lib]
crate-type = ["cdylib", "rlib"]
name = "clarity_lsp"
path = "src/lib.rs"
[package.metadata.wasm-pack.profile.dev]
wasm-opt = ['-O1']
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
debug-js-glue = true
demangle-name-section = true
dwarf-debug-info = false
[package.metadata.wasm-pack.profile.profiling]
wasm-opt = ['-O']
[package.metadata.wasm-pack.profile.profiling.wasm-bindgen]
debug-js-glue = false
demangle-name-section = true
dwarf-debug-info = false
[package.metadata.wasm-pack.profile.release]
# -04 aggressively optimizes for speed
wasm-opt = ['-O4']
# -0z aggressively optimizes for size
# wasm-opt = ['-Oz']
[package.metadata.wasm-pack.profile.release.wasm-bindgen]
debug-js-glue = false
demangle-name-section = true
dwarf-debug-info = false