Skip to content

Commit

Permalink
Add curve feature
Browse files Browse the repository at this point in the history
  • Loading branch information
pefontana committed Oct 26, 2023
1 parent 900cea3 commit 15bed72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/starknet-types-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ arbitrary = { version = "1.3.0", optional = true, default-features = false }
num-traits = { version = "0.2.16", default-features = false }

[features]
default = ["std", "serde"]
default = ["std", "serde", "curve"]
curve = []
std = []
alloc = ["serde?/alloc"]
arbitrary = ["std", "dep:arbitrary"]
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet-types-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(feature = "curve")]
pub mod curve;
pub mod felt;

#[cfg(test)]
mod felt_arbitrary;
1 change: 1 addition & 0 deletions ensure_no_std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ edition = "2021"
starknet-types-core = { path = "../crates/starknet-types-core", default-features = false, features = [
"alloc",
"serde",
"curve",
] }
starknet-types-rpc = { path = "../crates/starknet-types-rpc", default-features = false }
wee_alloc = "0.4.5"
Expand Down

0 comments on commit 15bed72

Please sign in to comment.