-
Notifications
You must be signed in to change notification settings - Fork 69
/
Cargo.toml
58 lines (50 loc) · 1.45 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
[package]
name = "ckb-vm"
description = "CKB's Virtual machine"
version = "0.24.0"
license = "MIT"
authors = ["Nervos Core Dev <[email protected]>"]
edition = "2021"
rust-version = "1.81.0"
build = "build.rs"
exclude = ["/benches", "/tests"]
homepage = "https://github.com/nervosnetwork/ckb-vm"
repository = "https://github.com/nervosnetwork/ckb-vm"
[features]
default = []
# Require asm feature, generates an error if asm cannot be enabled.
asm = []
# Detect if requirements are met, and enable asm feature when we can.
detect-asm = []
enable-chaos-mode-by-default = ["ckb-vm-definitions/enable-chaos-mode-by-default"]
# Disable slow tests to run miri on CI
miri-ci = []
pprof = []
[dependencies]
byteorder = "1"
bytes = "1"
goblin_v023 = { package = "goblin", version = "=0.2.3" }
goblin_v040 = { package = "goblin", version = "=0.4.0" }
scroll = "0.10"
serde = { version = "1.0", features = ["derive"] }
ckb-vm-definitions = { path = "definitions", version = "=0.24.0" }
derive_more = { version = "1", features = ["full"] }
rand = "0.7.3"
[build-dependencies]
cc = "1.0"
[dev-dependencies]
criterion = "0.5.1"
proptest = "1.5.0"
[target.'cfg(not(target_os = "windows"))'.dev-dependencies]
jemallocator = "0.5.0"
jemalloc-ctl = "0.5.0"
[[bench]]
name = "bits_benchmark"
path = "benches/bits_benchmark.rs"
harness = false
[[bench]]
name = "vm_benchmark"
path = "benches/vm_benchmark.rs"
harness = false
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(has_asm)'] }