forked from nervosnetwork/ckb-std
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
56 lines (48 loc) · 1.46 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
[package]
name = "ckb-std"
version = "0.16.2"
authors = ["Nervos network"]
edition = "2021"
license = "MIT"
repository = "https://github.com/nervosnetwork/ckb-std"
description = "This library contains serveral modules help you write CKB contract with Rust"
exclude = ["docs"]
[package.metadata.docs.rs]
# All features except simulator and rustc-dep-of-std.
features = [
"allocator",
"ckb-types",
"libc",
"calc-hash",
"build-with-clang",
"dlopen-c",
]
rustdoc-args = ["--cfg", "docsrs"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["allocator", "calc-hash", "ckb-types", "dummy-atomic", "libc"]
calc-hash = ["ckb-types/calc-hash"]
allocator = ["buddy-alloc"]
native-simulator = ["ckb-x64-simulator"]
dlopen-c = ["libc"]
build-with-clang = []
libc = []
# work with `target-feature=-a` Cargo flag
dummy-atomic = []
log = ["dep:log", "dummy-atomic"]
# require `ckb-hash`
type-id = ["ckb-hash", "ckb-types"]
[build-dependencies]
cc = "1.0"
[dependencies]
ckb-types = { package = "ckb-gen-types", version = "0.119", default-features = false, optional = true }
ckb-hash = { version = "0.119", default-features = false, features = [
"ckb-contract",
], optional = true }
buddy-alloc = { version = "0.6", optional = true }
ckb-x64-simulator = { version = "0.10", optional = true }
gcd = "2.3"
log = { version = "0.4", optional = true, default-features = false }
[workspace]
exclude = ["test"]
resolver = "2"