diff --git a/crates/starknet-types-core/Cargo.toml b/crates/starknet-types-core/Cargo.toml index e53d2ee..2c6b64b 100644 --- a/crates/starknet-types-core/Cargo.toml +++ b/crates/starknet-types-core/Cargo.toml @@ -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"] diff --git a/crates/starknet-types-core/src/lib.rs b/crates/starknet-types-core/src/lib.rs index 4407670..18855ad 100644 --- a/crates/starknet-types-core/src/lib.rs +++ b/crates/starknet-types-core/src/lib.rs @@ -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; diff --git a/ensure_no_std/Cargo.toml b/ensure_no_std/Cargo.toml index 3513c3c..e18e611 100644 --- a/ensure_no_std/Cargo.toml +++ b/ensure_no_std/Cargo.toml @@ -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"