From efd74f30b6f3cea376f6664b94817fca42186a40 Mon Sep 17 00:00:00 2001 From: cchudant Date: Thu, 21 Nov 2024 10:33:23 +0000 Subject: [PATCH] fix: no std warnings --- Cargo.toml | 5 +++-- src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f11a762..c449603 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ std = [ "parity-scale-codec/std", "bitvec/std", "starknet-types-core/std", + "thiserror/std", "rayon", "hashbrown/rayon", ] @@ -26,7 +27,7 @@ log = "0.4.20" rayon = { version = "1.9.0", optional = true } smallvec = { version = "1.11.2", features = ["serde"] } slotmap = "1.0.7" -thiserror = "1.0" +thiserror = { version = "2.0", default-features = false } parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive", @@ -35,7 +36,7 @@ serde = { version = "1.0.195", default-features = false, features = [ "derive", "alloc", ] } -starknet-types-core = { version = "0.1.5", default-features = false, features = [ +starknet-types-core = { version = "0.1.7", default-features = false, features = [ "hash", "parity-scale-codec", "alloc", diff --git a/src/lib.rs b/src/lib.rs index 5a0060b..97e44db 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,7 +94,7 @@ pub(crate) use hashbrown::hash_map; extern crate alloc; #[cfg(not(feature = "std"))] pub(crate) use alloc::{ - collections::{BTreeMap, BTreeSet, VecDeque}, + collections::BTreeMap, format, string::{String, ToString}, vec,