-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCargo.toml
68 lines (61 loc) · 1.82 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
67
68
[package]
name = "finite-wasm"
version = "0.5.0"
edition = "2021"
authors = ["Simonas Kazlauskas <[email protected]>"]
license = "MIT OR Apache-2.0"
readme = "README.mkd"
repository = "https://github.com/near/finite-wasm"
homepage = "https://github.com/near/finite-wasm"
documentation = "https://docs.rs/finite-wasm"
description = """
Guarantee deterministic limits on execution time and space resources made available to the
WebAssembly programs in a runtime-agnostic way.
"""
exclude = ["/tests/snaps"]
[[test]]
name = "wast"
path = "src/wast_tests/runner.rs"
harness = false
required-features = ["wast-tests"]
[[bench]]
name = "instrument_all"
path = "benches/instrument_all.rs"
harness = false
required-features = ["instrument"]
[dependencies]
atoi = { version = "2.0", optional = true }
bitvec = "1.0.1"
dissimilar = "1"
lazy_static = { version = "1.4", optional = true }
libc = { version = "0.2.144", optional = true }
wasmparser = "0.105.0"
# Ensure that we depend on a single version of wasmparser only (patch versions bump wasmparser dep)
wasmprinter = "=0.2.57"
thiserror = "1"
num-traits = "0.2.15"
prefix-sum-vec = "0.1.2"
tempfile = { version = "3.5", optional = true }
wasm-encoder = { version = "0.27.0", optional = true }
wast = { version = "52", optional = true }
[dev-dependencies]
arbitrary = { version = "1.3", features = ["derive"] }
bolero = { version = "0.10.0", features = ["arbitrary"] }
criterion = "0.5.0"
rayon = "1.6.1"
tempfile = "3.7"
walkdir = "2.3.0"
wasm-instrument = "0.4"
wasm-smith = "0.12"
wasmparser = "0.105.0"
[features]
instrument = ["wasm-encoder"]
wast-tests = ["atoi", "instrument", "lazy_static", "libc", "tempfile", "wast"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "finite_wasm_docs"]
[profile.fuzz]
inherits = "dev"
opt-level = 3
incremental = false
codegen-units = 1