This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCargo.toml
71 lines (63 loc) · 2.78 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
69
70
71
[package]
name = "fuel-tx"
version = "0.23.1"
authors = ["Fuel Labs <contact@fuel.sh>"]
categories = ["cryptography::cryptocurrencies", "data-structures"]
edition = "2021"
homepage = "https://fuel.network/"
keywords = ["blockchain", "cryptocurrencies", "fuel-vm", "vm"]
license = "Apache-2.0"
repository = "https://github.com/FuelLabs/fuel-tx"
description = "FuelVM transaction."
[dependencies]
bitflags = "1"
derivative = { version = "2.2.0", default-features = false, features = ["use_core"] }
fuel-asm = { version = "0.10", default-features = false }
fuel-crypto = { version = "0.6", default-features = false }
fuel-merkle = { version = "0.4", default-features = false }
fuel-types = { version = "0.5", default-features = false }
itertools = { version = "0.10", default-features = false }
num-integer = { version = "0.1", default-features = false }
rand = { version = "0.8", default-features = false, features = ["std_rng"], optional = true }
serde = { version = "1.0", default-features = false, features = ["alloc", "derive"], optional = true }
serde_json = { version = "1.0", default-features = false, features = ["alloc"], optional = true }
[dev-dependencies]
bincode = { version = "1.3", default-features = false }
fuel-crypto = { version = "0.6", default-features = false, features = ["random"] }
fuel-tx = { path = ".", features = ["builder", "random"] }
fuel-tx-test-helpers = { path = "test-helpers" }
fuel-types = { version = "0.5", default-features = false, features = ["random"] }
insta = "1.0"
quickcheck = "1.0"
quickcheck_macros = "1.0"
rand = { version = "0.8", default-features = false, features = ["std_rng"] }
rstest = "0.15"
[features]
default = ["fuel-asm/default", "fuel-crypto/default", "fuel-merkle/default", "fuel-types/default", "std"]
alloc = ["fuel-types/alloc", "itertools/use_alloc"]
builder = ["alloc", "internals"]
internals = []
random = ["fuel-crypto/random", "fuel-types/random", "rand"]
std = ["alloc", "fuel-asm/std", "fuel-crypto/std", "fuel-merkle/std", "fuel-types/std", "itertools/default", "rand?/default", "serde?/default"]
# serde is requiring alloc because its mandatory for serde_json. to avoid adding a new feature only for serde_json, we just require `alloc` here since as of the moment we don't have a use case of serde without alloc.
serde = ["alloc", "dep:serde", "fuel-asm/serde", "fuel-crypto/serde", "fuel-types/serde", "serde_json"]
[[test]]
name = "test-bytes"
path = "tests/bytes.rs"
required-features = ["serde", "std"]
[[test]]
name = "test-display"
path = "tests/display.rs"
required-features = ["serde", "std"]
[[test]]
name = "test-offsets"
path = "tests/offset.rs"
required-features = ["std"]
[[test]]
name = "test-prepared-init"
path = "tests/prepared_init.rs"
required-features = ["std"]
[[test]]
name = "test-valid"
path = "tests/valid.rs"
required-features = ["std"]