-
Notifications
You must be signed in to change notification settings - Fork 41
/
Cargo.toml
168 lines (151 loc) · 5.2 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[package]
name = "ruint"
description = "Unsigned integer type with const-generic bit length"
version = "1.12.3"
keywords = ["uint"]
categories = ["mathematics"]
include = [".cargo/", "src/", "README.md"]
readme = "README.md"
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
"--html-in-header",
".cargo/katex-header.html",
]
[workspace]
members = [".", "ruint-macro"]
resolver = "2"
[workspace.package]
edition = "2021"
rust-version = "1.65"
authors = ["Remco Bloemen <remco@wicked.ventures>"]
license = "MIT"
homepage = "https://github.com/recmo/uint"
repository = "https://github.com/recmo/uint"
[[bench]]
name = "bench_uint"
harness = false
path = "benches/bench.rs"
required-features = ["std"]
[dependencies]
ruint-macro = { version = "1.2.1", path = "ruint-macro" }
thiserror = { version = "1.0", optional = true }
# support
alloy-rlp = { version = "0.3", optional = true, default-features = false }
arbitrary = { version = "1", optional = true, default-features = false }
ark-ff-03 = { version = "0.3.0", package = "ark-ff", optional = true, default-features = false }
ark-ff-04 = { version = "0.4.0", package = "ark-ff", optional = true, default-features = false }
bn-rs = { version = "0.2", optional = true, default-features = true }
fastrlp-03 = { version = "0.3", package = "fastrlp", optional = true, default-features = false, features = [
"alloc",
] }
fastrlp-04 = { version = "0.4", package = "fastrlp", optional = true, default-features = false, features = [
"alloc",
] }
num-bigint = { version = "0.4", optional = true, default-features = false }
num-integer = { version = "0.1", optional = true, default-features = false }
num-traits = { version = "0.2.16", optional = true, default-features = false }
parity-scale-codec = { version = "3", optional = true, features = [
"derive",
"max-encoded-len",
], default-features = false }
primitive-types = { version = "0.12", optional = true, default-features = false }
proptest = { version = "1.3", optional = true, default-features = false }
pyo3 = { version = "0.19", optional = true, default-features = false }
quickcheck = { version = "1", optional = true, default-features = false }
rand = { version = "0.8", optional = true, default-features = false }
rlp = { version = "0.5", optional = true, default-features = false }
serde = { version = "1", optional = true, default-features = false }
valuable = { version = "0.1", optional = true, default-features = false }
zeroize = { version = "1.6", optional = true, default-features = false }
bytemuck = { version = "1.13.1", optional = true, default-features = false }
ethereum_ssz = { version = "0.5.3", optional = true, default-features = false }
der = { version = "0.7", optional = true, default-features = false, features = [
"alloc",
] }
subtle = { version = "2.6.1", optional = true, default-features = false }
# postgres
bytes = { version = "1.4", optional = true }
postgres-types = { version = "0.2", optional = true }
# sqlx
sqlx-core = { version = "0.8.2", optional = true }
[dev-dependencies]
ruint = { path = ".", features = ["arbitrary", "proptest"] }
ark-bn254-03 = { version = "0.3.0", package = "ark-bn254" }
ark-bn254-04 = { version = "0.4.0", package = "ark-bn254" }
criterion = "0.5"
rand = "0.8"
approx = "0.5"
bincode = "1.3"
hex = "0.4"
hex-literal = "0.4"
postgres = "0.19"
proptest = "1.2"
serde_json = "1.0"
[features]
default = ["std"]
std = [
"alloc",
"alloy-rlp?/std",
"ark-ff-03?/std",
"ark-ff-04?/std",
"bytes?/std",
"fastrlp-03?/std",
"fastrlp-04?/std",
"num-bigint?/std",
"num-integer?/std",
"num-traits?/std",
"parity-scale-codec?/std",
"primitive-types?/std",
"proptest?/std",
"rand?/std",
"rlp?/std",
"serde?/std",
"valuable?/std",
"zeroize?/std",
]
ssz = ["std", "dep:ethereum_ssz"]
alloc = [
"proptest?/alloc",
"rand?/alloc",
"serde?/alloc",
"valuable?/alloc",
"zeroize?/alloc",
]
# nightly-only features
nightly = []
generic_const_exprs = ["nightly"]
# support
alloy-rlp = ["dep:alloy-rlp", "alloc"]
arbitrary = ["dep:arbitrary", "std"]
ark-ff = ["dep:ark-ff-03"]
ark-ff-04 = ["dep:ark-ff-04"]
bn-rs = ["dep:bn-rs", "std"]
bytemuck = ["dep:bytemuck"]
der = ["dep:der", "alloc"] # TODO: also have alloc free der impls.
fastrlp = ["dep:fastrlp-03", "alloc"]
fastrlp-04 = ["dep:fastrlp-04", "alloc"]
num-bigint = ["dep:num-bigint", "alloc"]
num-integer = ["dep:num-integer", "num-traits", "alloc"]
num-traits = ["dep:num-traits", "alloc"]
parity-scale-codec = ["dep:parity-scale-codec", "alloc"]
postgres = ["dep:postgres-types", "dep:bytes", "dep:thiserror", "std"]
primitive-types = ["dep:primitive-types"]
proptest = ["dep:proptest", "alloc"]
pyo3 = ["dep:pyo3", "std"]
quickcheck = ["dep:quickcheck", "std"]
rand = ["dep:rand"]
rlp = ["dep:rlp", "alloc"]
serde = ["dep:serde", "alloc"] # TODO: try to avoid alloc in serde impls
sqlx = ["dep:sqlx-core", "std", "dep:thiserror"]
subtle = ["dep:subtle"]
valuable = ["dep:valuable"]
zeroize = ["dep:zeroize"]