-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCargo.toml
48 lines (42 loc) · 1.54 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
[package]
name = "ic-wasm"
version = "0.9.5"
authors = ["DFINITY Stiftung"]
edition = "2021"
description = "A library for performing Wasm transformations specific to canisters running on the Internet Computer"
license = "Apache-2.0"
readme = "README.md"
documentation = "https://docs.rs/ic-wasm"
repository = "https://github.com/dfinity/ic-wasm"
categories = ["wasm"]
keywords = ["internet-computer", "canister", "dfinity"]
include = ["src", "Cargo.toml", "LICENSE", "README.md"]
[[bin]]
name = "ic-wasm"
path = "src/bin/main.rs"
required-features = ["exe"]
[dependencies]
# Major version bump of walrus should result in a major version bump of ic-wasm.
# Because we expose walrus types in ic-wasm public API.
walrus = "0.22.0"
candid = "0.10"
rustc-demangle = "0.1"
thiserror = "1.0.35"
libflate = "2.0"
wasmparser = "0.223.0"
wasm-opt = { version = "0.116.0", optional = true }
tempfile = { version = "3.5.0", optional = true }
anyhow = { version = "1.0.34", optional = true }
clap = { version = "4.1", features = ["derive", "cargo"], optional = true }
serde = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
[features]
default = ["exe", "wasm-opt"]
exe = ["anyhow", "clap", "serde"]
wasm-opt = ["dep:wasm-opt", "tempfile"]
serde = ["dep:serde", "dep:serde_json"]
[dev-dependencies]
assert_cmd = "2"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/{ version }/{ name }-{ target }{ archive-suffix }"
pkg-fmt = "tgz" # archive-suffix = .tar.gz