-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCargo.toml
66 lines (56 loc) · 2.75 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
[package]
authors = ["Jonathan Turner <[email protected]>"]
edition = "2018"
name = "wasm-nu"
version = "0.1.0"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
stable = []
default = []
[dependencies]
encoding_rs = "0.8.28"
serde = { version = "1.0.123", features = ["derive"] }
serde_json = "1.0.62"
wasm-bindgen = "0.2.70"
wasm-bindgen-futures = "0.4.20"
getrandom = { version = "0.2.2", features = ["js"] }
instant = { version = "0.1", features = ["wasm-bindgen", "inaccurate"] }
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
# compared to the default allocator's ~10K. It is slower than the default
# allocator, however.
#
# Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
wee_alloc = { version = "0.4.5", optional = true }
nu-cli = { git = "https://github.com/nushell/nushell.git", branch = "main", default-features = false }
nu-errors = { git = "https://github.com/nushell/nushell.git", branch = "main", default-features = false }
nu-protocol = { git = "https://github.com/nushell/nushell.git", branch = "main", default-features = false }
nu-source = { git = "https://github.com/nushell/nushell.git", branch = "main", default-features = false }
nu-engine = { git = "https://github.com/nushell/nushell.git", branch = "main", default-features = false }
nu-stream = { git = "https://github.com/nushell/nushell.git", branch = "main", default-features = false }
web-sys = { version = "0.3.47", features = ["console"] }
[dev-dependencies]
wasm-bindgen-test = "0.3.20"
[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "s"
# [package.metadata.wasm-pack.profile.dev]
# # Should `wasm-opt` be used to further optimize the wasm binary generated after
# # the Rust compiler has finished? Using `wasm-opt` can often further decrease
# # binary size or do clever tricks that haven't made their way into LLVM yet.
# #
# # Configuration is set to `false` by default for the dev profile, but it can
# # be set to an array of strings which are explicit arguments to pass to
# # `wasm-opt`. For example `['-Os']` would optimize for size while `['-O4']`
# # would execute very expensive optimizations passes
# wasm-opt = ['-g']
# [package.metadata.wasm-pack.profile.release]
# # Should `wasm-opt` be used to further optimize the wasm binary generated after
# # the Rust compiler has finished? Using `wasm-opt` can often further decrease
# # binary size or do clever tricks that haven't made their way into LLVM yet.
# #
# # Configuration is set to `false` by default for the dev profile, but it can
# # be set to an array of strings which are explicit arguments to pass to
# # `wasm-opt`. For example `['-Os']` would optimize for size while `['-O4']`
# # would execute very expensive optimizations passes
# wasm-opt = ['-g']