Skip to content

Commit f7ec1f3

Browse files
committed
Add u64_digit feature
Adds an on-by-default feature which enables `num-bigint-dig/u64_digit`. Disabling this on 32-bit platforms (e.g. WASM) should improve performance. Closes #252
1 parent 78ea9cb commit f7ec1f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ readme = "README.md"
1313
rust-version = "1.65"
1414

1515
[dependencies]
16-
num-bigint = { version = "0.8.2", features = ["i128", "u64_digit", "prime", "zeroize"], default-features = false, package = "num-bigint-dig" }
16+
num-bigint = { version = "0.8.2", features = ["i128", "prime", "zeroize"], default-features = false, package = "num-bigint-dig" }
1717
num-traits = { version= "0.2.9", default-features = false, features = ["libm"] }
1818
num-integer = { version = "0.1.39", default-features = false }
1919
num-iter = { version = "0.1.37", default-features = false }
@@ -48,12 +48,13 @@ sha3 = { version = "0.10.5", default-features = false, features = ["oid"] }
4848
name = "key"
4949

5050
[features]
51-
default = ["std", "pem"]
51+
default = ["std", "pem", "u64_digit"]
5252
getrandom = ["rand_core/getrandom"]
5353
nightly = ["num-bigint/nightly"]
5454
serde = ["dep:serde", "num-bigint/serde"]
5555
pem = ["pkcs1/pem", "pkcs8/pem"]
5656
pkcs5 = ["pkcs8/encryption"]
57+
u64_digit = ["num-bigint/u64_digit"]
5758
std = ["digest/std", "pkcs1/std", "pkcs8/std", "rand_core/std", "signature/std"]
5859

5960
[package.metadata.docs.rs]

0 commit comments

Comments
 (0)