Skip to content

Commit cb28f70

Browse files
revert sizeof, bump to 0.2.2 (#158)
Signed-off-by: Dori Medini <[email protected]>
1 parent c4ebda1 commit cb28f70

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

crates/starknet-types-core/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "starknet-types-core"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
edition = "2021"
55
license = "MIT"
66
homepage = "https://github.com/starknet-io/types-rs"
@@ -15,7 +15,6 @@ lambdaworks-math = { version = "0.12.0", default-features = false }
1515
num-traits = { version = "0.2", default-features = false }
1616
num-bigint = { version = "0.4", default-features = false }
1717
num-integer = { version = "0.1", default-features = false }
18-
size-of = { version = "0.1.5", default-features = false }
1918

2019
# Optional
2120
arbitrary = { version = "1.3", optional = true }

crates/starknet-types-core/src/felt/mod.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ use num_bigint::{BigInt, BigUint, Sign};
3434
use num_integer::Integer;
3535
use num_traits::{One, Zero};
3636
pub use primitive_conversions::PrimitiveFromFeltError;
37-
use size_of::SizeOf;
3837

3938
use lambdaworks_math::{
4039
field::{
@@ -49,10 +48,6 @@ use lambdaworks_math::{
4948
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
5049
pub struct Felt(pub(crate) FieldElement<Stark252PrimeField>);
5150

52-
impl SizeOf for Felt {
53-
fn size_of_children(&self, _context: &mut size_of::Context) {}
54-
}
55-
5651
#[derive(Debug)]
5752
pub struct FromStrError(CreationError);
5853

@@ -773,7 +768,6 @@ mod test {
773768
use num_traits::Num;
774769
use proptest::prelude::*;
775770
use regex::Regex;
776-
use size_of::TotalSize;
777771

778772
#[test]
779773
fn test_debug_format() {
@@ -1335,15 +1329,4 @@ mod test {
13351329
assert_eq!(one, Felt::ONE);
13361330
assert_eq!(zero, Felt::ZERO);
13371331
}
1338-
1339-
#[test]
1340-
fn felt_size_of() {
1341-
assert_eq!(Felt::ZERO.size_of(), TotalSize::total(32));
1342-
assert_eq!(Felt::ONE.size_of(), TotalSize::total(32));
1343-
assert_eq!(
1344-
Felt(FieldElement::from(1600000000)).size_of(),
1345-
TotalSize::total(32)
1346-
);
1347-
assert_eq!(Felt::MAX.size_of(), TotalSize::total(32));
1348-
}
13491332
}

0 commit comments

Comments
 (0)