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 22, 2023
1 parent 7a9ad3a commit 68ca0a8
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 @@ -43,6 +43,7 @@ arbitrary = ["std", "dep:arbitrary"]
parity-scale-codec = ["dep:parity-scale-codec"]
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 @@ -980,8 +980,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 @@ -9,6 +9,7 @@ starknet-types-core = { path = "../crates/starknet-types-core", default-features
"serde",
"curve",
"parity-scale-codec",
"num-traits",
] }
starknet-types-rpc = { path = "../crates/starknet-types-rpc", default-features = false }
wee_alloc = "0.4.5"
Expand Down

0 comments on commit 68ca0a8

Please sign in to comment.