diff --git a/crates/starknet-types-core/Cargo.toml b/crates/starknet-types-core/Cargo.toml index a63fe7c..c8414a1 100644 --- a/crates/starknet-types-core/Cargo.toml +++ b/crates/starknet-types-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "starknet-types-core" -version = "0.2.3" +version = "0.2.4" edition = "2021" license = "MIT" homepage = "https://github.com/starknet-io/types-rs" @@ -15,7 +15,6 @@ lambdaworks-math = { version = "0.13.0", default-features = false } num-traits = { version = "0.2", default-features = false } num-bigint = { version = "0.4", default-features = false } num-integer = { version = "0.1", default-features = false } -size-of = { version = "0.1.5", default-features = false } # Optional arbitrary = { version = "1.3", optional = true } diff --git a/crates/starknet-types-core/src/felt/mod.rs b/crates/starknet-types-core/src/felt/mod.rs index d3377ba..12b8564 100644 --- a/crates/starknet-types-core/src/felt/mod.rs +++ b/crates/starknet-types-core/src/felt/mod.rs @@ -34,7 +34,6 @@ use num_bigint::{BigInt, BigUint, Sign}; use num_integer::Integer; use num_traits::{One, Zero}; pub use primitive_conversions::PrimitiveFromFeltError; -use size_of::SizeOf; use lambdaworks_math::{ field::{ @@ -49,10 +48,6 @@ use lambdaworks_math::{ #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Felt(pub(crate) FieldElement); -impl SizeOf for Felt { - fn size_of_children(&self, _context: &mut size_of::Context) {} -} - #[derive(Debug)] pub struct FromStrError(CreationError); @@ -774,7 +769,6 @@ mod test { use num_traits::Num; use proptest::prelude::*; use regex::Regex; - use size_of::TotalSize; #[test] fn test_debug_format() { @@ -1336,15 +1330,4 @@ mod test { assert_eq!(one, Felt::ONE); assert_eq!(zero, Felt::ZERO); } - - #[test] - fn felt_size_of() { - assert_eq!(Felt::ZERO.size_of(), TotalSize::total(32)); - assert_eq!(Felt::ONE.size_of(), TotalSize::total(32)); - assert_eq!( - Felt(FieldElement::from(1600000000)).size_of(), - TotalSize::total(32) - ); - assert_eq!(Felt::MAX.size_of(), TotalSize::total(32)); - } }