Skip to content

Commit

Permalink
fix: tests and ensure_no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
tdelabro committed Dec 21, 2023
1 parent 4c8e792 commit 68543e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/starknet-types-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ hash = ["dep:lambdaworks-crypto"]
arbitrary = ["std", "dep:arbitrary"]
serde = ["dep:serde"]
num-traits = []
alloc = ["serde?/alloc"]

[dev-dependencies]
proptest = "1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet-types-core/src/felt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,8 +960,8 @@ mod errors {
#[cfg(test)]
mod test {
use super::alloc::{format, string::String, vec::Vec};
use super::felt_arbitrary::nonzero_felt;
use super::*;
use crate::felt_arbitrary::nonzero_felt;
use core::ops::Shl;
use proptest::prelude::*;
#[cfg(feature = "serde")]
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet-types-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ default = ["std"]
std = ["serde/std", "starknet-types-core/std"]

[dependencies]
starknet-types-core = { path = "../starknet-types-core", default-features = false, features = ["serde"] }
starknet-types-core = { path = "../starknet-types-core", default-features = false, features = ["serde", "alloc"] }
serde = { version = "1", default-features = false, features = ["derive"] }

[dev-dependencies]
Expand Down
1 change: 1 addition & 0 deletions ensure_no_std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ starknet-types-core = { path = "../crates/starknet-types-core", default-features
"alloc",
"serde",
"curve",
"num-traits",
] }
starknet-types-rpc = { path = "../crates/starknet-types-rpc", default-features = false }
wee_alloc = "0.4.5"
Expand Down

0 comments on commit 68543e9

Please sign in to comment.