Skip to content

Commit a866e90

Browse files
authored
refactor: remove bigdecimal feature from crates (#429)
Removes the `bigdecimal` feature from `starknet-curve`, `starknet- crypto`, and `starknet-core`, as these crates just use/re-export the `starknet-ff` lib without being affected by the presence of `bigdecimal` anyways. There's no reason to have that feature. Users who do want to enable `bigdecimal` while using these crates need to manually import `starknet-ff`. This feature still makes sense for `starknet` though, as it's designed to be a Just Works crate that's easy to consume.
1 parent 21d1199 commit a866e90

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ members = [
3434
all-features = true
3535

3636
[dependencies]
37+
starknet-ff = { version = "0.3.4", path = "./starknet-ff", default-features = false }
3738
starknet-core = { version = "0.3.2", path = "./starknet-core", default-features = false }
3839
starknet-providers = { version = "0.3.0", path = "./starknet-providers" }
3940
starknet-contract = { version = "0.2.0", path = "./starknet-contract" }
@@ -48,7 +49,7 @@ url = "2.2.2"
4849

4950
[features]
5051
default = ["bigdecimal"]
51-
bigdecimal = ["starknet-core/bigdecimal"]
52+
bigdecimal = ["starknet-ff/bigdecimal"]
5253
no_unknown_fields = [
5354
"starknet-core/no_unknown_fields",
5455
"starknet-providers/no_unknown_fields",

starknet-core/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ starknet-core = { path = ".", features = ["no_unknown_fields"] }
3535
wasm-bindgen-test = "0.3.34"
3636

3737
[features]
38-
default = ["std", "bigdecimal"]
38+
default = ["std"]
3939
std = ["dep:flate2", "starknet-ff/std", "starknet-crypto/std"]
40-
bigdecimal = ["starknet-ff/bigdecimal", "starknet-crypto/bigdecimal"]
4140
no_unknown_fields = []
4241

4342
[[bench]]

starknet-crypto/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ default = ["std", "signature-display"]
3131
std = []
3232
alloc = ["hex?/alloc"]
3333
signature-display = ["dep:hex", "alloc"]
34-
bigdecimal = ["starknet-curve/bigdecimal", "starknet-ff/bigdecimal"]
3534

3635
[dev-dependencies]
3736
criterion = { version = "0.4.0", default-features = false }

starknet-curve/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,3 @@ keywords = ["ethereum", "starknet", "web3", "no_std"]
1414

1515
[dependencies]
1616
starknet-ff = { version = "0.3.4", path = "../starknet-ff", default-features = false }
17-
18-
[features]
19-
bigdecimal = ["starknet-ff/bigdecimal"]

0 commit comments

Comments
 (0)