-
Notifications
You must be signed in to change notification settings - Fork 224
/
Copy pathCargo.toml
52 lines (46 loc) · 1.92 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
[package]
name = "primitive-types"
version = "0.13.1"
authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/paritytech/parity-common"
repository = "https://github.com/paritytech/parity-common"
description = "Primitive types shared by Ethereum and Substrate"
edition = "2021"
rust-version = "1.60.0"
[dependencies]
fixed-hash = { version = "0.8", path = "../fixed-hash", default-features = false }
uint = { version = "0.10.0", path = "../uint", default-features = false }
impl-serde = { version = "0.5.0", path = "impls/serde", default-features = false, optional = true }
impl-codec = { version = "0.7.0", path = "impls/codec", default-features = false, optional = true }
impl-num-traits = { version = "0.2.0", path = "impls/num-traits", default-features = false, optional = true }
impl-rlp = { version = "0.4", path = "impls/rlp", default-features = false, optional = true }
scale-info-crate = { package = "scale-info", version = ">=0.9, <3", features = ["derive"], default-features = false, optional = true }
schemars = { version = ">=0.8.12", default-features = true, optional = true }
[dev-dependencies]
num-traits = "0.2"
serde_json = { version = "1.0", default-features = false }
jsonschema = { version = "0.23", default-features = false }
[features]
default = ["std", "rand"]
std = ["uint/std", "fixed-hash/std", "impl-codec?/std"]
rand = ["fixed-hash/rand"]
rustc-hex = ["fixed-hash/rustc-hex"]
serde = ["std", "impl-serde", "impl-serde/std"]
json-schema = ["dep:schemars"]
serde_no_std = ["impl-serde"]
codec = ["impl-codec"]
scale-info = ["codec", "scale-info-crate"]
rlp = ["impl-rlp"]
arbitrary = ["fixed-hash/arbitrary", "uint/arbitrary"]
fp-conversion = ["std"]
num-traits = ["impl-num-traits"]
[[test]]
name = "scale_info"
required-features = ["scale-info"]
[[test]]
name = "fp_conversion"
required-features = ["fp-conversion"]
[[test]]
name = "num_traits"
required-features = ["num-traits"]