mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
sp-std removal from substrate/primitives (#3274)
This PR removes sp-std crate from substrate/primitives sub-directories. For now crates that have `pub use` of sp-std or export macros that would necessitate users of the macros to `extern crate alloc` have been excluded from this PR. There should be no breaking changes in this PR. --------- Co-authored-by: Koute <koute@users.noreply.github.com>
This commit is contained in:
@@ -26,7 +26,6 @@ sp-application-crypto = { path = "../../application-crypto", default-features =
|
||||
sp-consensus-slots = { path = "../slots", default-features = false }
|
||||
sp-core = { path = "../../core", default-features = false, features = ["bandersnatch-experimental"] }
|
||||
sp-runtime = { path = "../../runtime", default-features = false }
|
||||
sp-std = { path = "../../std", default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
@@ -39,7 +38,6 @@ std = [
|
||||
"sp-consensus-slots/std",
|
||||
"sp-core/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
|
||||
# Serde support without relying on std features.
|
||||
|
||||
@@ -25,8 +25,9 @@ use crate::{
|
||||
use scale_codec::{Decode, Encode, MaxEncodedLen};
|
||||
use scale_info::TypeInfo;
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::vec::Vec;
|
||||
use sp_runtime::{DigestItem, RuntimeDebug};
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
/// Epoch slot claim digest entry.
|
||||
///
|
||||
|
||||
@@ -21,11 +21,13 @@
|
||||
#![forbid(unsafe_code, missing_docs, unused_variables, unused_imports)]
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use scale_codec::{Decode, Encode, MaxEncodedLen};
|
||||
use scale_info::TypeInfo;
|
||||
use sp_core::crypto::KeyTypeId;
|
||||
use sp_runtime::{ConsensusEngineId, RuntimeDebug};
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
pub use sp_consensus_slots::{Slot, SlotDuration};
|
||||
|
||||
|
||||
@@ -18,9 +18,10 @@
|
||||
//! Utilities related to VRF input, pre-output and signatures.
|
||||
|
||||
use crate::{Randomness, TicketBody, TicketId};
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::vec::Vec;
|
||||
use scale_codec::Encode;
|
||||
use sp_consensus_slots::Slot;
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
pub use sp_core::bandersnatch::{
|
||||
ring_vrf::{RingProver, RingVerifier, RingVerifierData, RingVrfSignature},
|
||||
|
||||
Reference in New Issue
Block a user