mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 00:31:07 +00:00
Fix node-rpc-client compilation (#4159)
* Fix `node-rpc-client` compilation * Enable `alloc` feature of `zeroize` on `std`
This commit is contained in:
@@ -28,7 +28,7 @@ tiny-bip39 = { version = "0.6.2", optional = true }
|
||||
hex = { version = "0.4", default-features = false, optional = true }
|
||||
regex = { version = "1.3.1", optional = true }
|
||||
num-traits = { version = "0.2.8", default-features = false }
|
||||
zeroize = { version = "0.10.1", default-features = false }
|
||||
zeroize = { version = "1.0.0", default-features = false }
|
||||
lazy_static = { version = "1.4.0", default-features = false, optional = true }
|
||||
parking_lot = { version = "0.9.0", optional = true }
|
||||
libsecp256k1 = { version = "0.3.0", default-features = false, optional = true }
|
||||
@@ -93,6 +93,7 @@ std = [
|
||||
"externalities",
|
||||
"primitives-storage/std",
|
||||
"runtime-interface/std",
|
||||
"zeroize/alloc"
|
||||
]
|
||||
|
||||
# This feature enables all crypto primitives for `no_std` builds like microcontrollers
|
||||
|
||||
@@ -23,7 +23,7 @@ use codec::Encode;
|
||||
use codec::Decode;
|
||||
#[cfg(feature = "std")]
|
||||
use inherents::ProvideInherentData;
|
||||
use inherents::{InherentIdentifier, ProvideInherent, IsFatalError, InherentData};
|
||||
use inherents::{InherentIdentifier, IsFatalError, InherentData};
|
||||
|
||||
use sr_primitives::RuntimeString;
|
||||
|
||||
@@ -112,4 +112,4 @@ impl ProvideInherentData for InherentDataProvider {
|
||||
#[impl_trait_for_tuples::impl_for_tuples(30)]
|
||||
pub trait OnTimestampSet<Moment> {
|
||||
fn on_timestamp_set(moment: Moment);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user