From 090636c210e8810a9e0e847e54c5b65ae1be3e32 Mon Sep 17 00:00:00 2001 From: Voxelot Date: Fri, 4 Oct 2024 22:53:23 -0700 Subject: [PATCH] battle of the feature flags --- fuel-crypto/Cargo.toml | 6 +++--- fuel-tx/Cargo.toml | 2 +- fuel-vm/src/storage/predicate.rs | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fuel-crypto/Cargo.toml b/fuel-crypto/Cargo.toml index 8b7b2e4afa..fe54f09085 100644 --- a/fuel-crypto/Cargo.toml +++ b/fuel-crypto/Cargo.toml @@ -16,9 +16,9 @@ coins-bip39 = { version = "0.8", default-features = false, features = ["english" ecdsa = { version = "0.16", default-features = false } ed25519-dalek = { version = "2.0.0", default-features = false } fuel-types = { workspace = true, default-features = false } -k256 = { version = "0.13", default-features = false, features = ["digest", "ecdsa"] } +k256 = { version = "0.13", default-features = false, features = ["digest", "ecdsa"] } lazy_static = { version = "1.4", optional = true } -p256 = { version = "0.13", default-features = false, features = ["digest", "ecdsa"] } +p256 = { version = "0.13", default-features = false, features = ["digest", "ecdsa"] } rand = { version = "0.8", default-features = false, optional = true } # `rand-std` is used to further protect the blinders from side-channel attacks and won't compromise # the deterministic arguments of the signature (key, nonce, message), as defined in the RFC-6979 @@ -35,7 +35,7 @@ sha2 = "0.10" [features] default = ["fuel-types/default", "std"] -alloc = ["rand?/alloc", "secp256k1/alloc", "fuel-types/alloc"] +alloc = ["rand?/alloc", "secp256k1?/alloc", "fuel-types/alloc"] random = ["fuel-types/random", "rand"] serde = ["dep:serde", "fuel-types/serde"] std = ["alloc", "coins-bip32", "secp256k1", "coins-bip39", "fuel-types/std", "lazy_static", "rand?/std_rng", "serde?/default"] diff --git a/fuel-tx/Cargo.toml b/fuel-tx/Cargo.toml index b93d260928..114f3ff201 100644 --- a/fuel-tx/Cargo.toml +++ b/fuel-tx/Cargo.toml @@ -55,7 +55,7 @@ internals = [] typescript = ["dep:serde_json", "alloc", "js-sys", "wasm-bindgen", "serde-wasm-bindgen", "fuel-types/typescript"] random = ["fuel-crypto/random", "fuel-types/random", "rand"] std = ["alloc", "fuel-asm/std", "fuel-crypto/std", "fuel-merkle/std", "fuel-types/std", "itertools/default", "rand?/default", "serde/default", "hex/std"] -alloc = ["hashbrown", "fuel-types/alloc", "fuel-crypto/alloc", "itertools/use_alloc", "derivative", "fuel-merkle", "strum", "strum_macros", "bitflags", "postcard", "derive_more", "fuel-asm/serde", "fuel-types/serde", "fuel-crypto/serde"] +alloc = ["hashbrown", "fuel-types/alloc", "fuel-crypto/alloc", "itertools/use_alloc", "derivative", "fuel-merkle", "strum", "strum_macros", "bitflags", "postcard", "derive_more", "fuel-asm/serde", "fuel-types/serde", "fuel-crypto/alloc", "fuel-crypto/serde", "fuel-merkle/serde"] da-compression = ["fuel-compression"] [lints.rust] diff --git a/fuel-vm/src/storage/predicate.rs b/fuel-vm/src/storage/predicate.rs index 3e83e49541..5981ba205f 100644 --- a/fuel-vm/src/storage/predicate.rs +++ b/fuel-vm/src/storage/predicate.rs @@ -47,6 +47,7 @@ pub struct PredicateStorage> { } impl> PredicateStorage { + /// instantiate predicate storage with access to Blobs pub fn new(storage: D) -> Self { Self { storage } }