mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
Rename: primitives/sr-std -> primitives/sp-std (#4327)
* primitives/sr-std -> primitives/std * fix * fix conflict * rstd -> sp-std * git mv * fix review * fix merge
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
use crate::{RuntimePublic, KeyTypeId};
|
||||
|
||||
use rstd::vec::Vec;
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
pub use primitives::ed25519::*;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ pub use codec;
|
||||
#[cfg(feature = "std")]
|
||||
pub use serde;
|
||||
#[doc(hidden)]
|
||||
pub use rstd::{ops::Deref, vec::Vec};
|
||||
pub use sp_std::{ops::Deref, vec::Vec};
|
||||
|
||||
pub mod ed25519;
|
||||
pub mod sr25519;
|
||||
@@ -102,7 +102,7 @@ macro_rules! app_crypto_pair {
|
||||
type Seed = <$pair as $crate::Pair>::Seed;
|
||||
type Signature = Signature;
|
||||
type DeriveError = <$pair as $crate::Pair>::DeriveError;
|
||||
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
fn generate_with_phrase(password: Option<&str>) -> (Self, String, Self::Seed) {
|
||||
let r = <$pair>::generate_with_phrase(password);
|
||||
@@ -353,7 +353,7 @@ macro_rules! app_crypto_signature_not_full_crypto {
|
||||
)]
|
||||
pub struct Signature($sig);
|
||||
}
|
||||
|
||||
|
||||
impl $crate::CryptoType for Signature {}
|
||||
|
||||
impl $crate::AppKey for Signature {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
use crate::{RuntimePublic, KeyTypeId};
|
||||
|
||||
use rstd::vec::Vec;
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
pub use primitives::sr25519::*;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ use primitives::crypto::Pair;
|
||||
|
||||
use codec::Codec;
|
||||
use primitives::crypto::{KeyTypeId, CryptoType, IsWrappedBy, Public};
|
||||
use rstd::{fmt::Debug, vec::Vec};
|
||||
use sp_std::{fmt::Debug, vec::Vec};
|
||||
|
||||
/// An application-specific key.
|
||||
pub trait AppKey: 'static + Send + Sync + Sized + CryptoType + Clone {
|
||||
@@ -42,9 +42,9 @@ pub trait AppKey: 'static + Send + Sync + Sized + CryptoType + Clone {
|
||||
|
||||
/// Type which implements Hash in std, not when no-std (std variant).
|
||||
#[cfg(any(feature = "std", feature = "full_crypto"))]
|
||||
pub trait MaybeHash: rstd::hash::Hash {}
|
||||
pub trait MaybeHash: sp_std::hash::Hash {}
|
||||
#[cfg(any(feature = "std", feature = "full_crypto"))]
|
||||
impl<T: rstd::hash::Hash> MaybeHash for T {}
|
||||
impl<T: sp_std::hash::Hash> MaybeHash for T {}
|
||||
|
||||
/// Type which implements Hash in std, not when no-std (no-std variant).
|
||||
#[cfg(all(not(feature = "std"), not(feature = "full_crypto")))]
|
||||
@@ -54,9 +54,9 @@ impl<T> MaybeHash for T {}
|
||||
|
||||
/// Type which implements Debug and Hash in std, not when no-std (no-std variant with crypto).
|
||||
#[cfg(all(not(feature = "std"), feature = "full_crypto"))]
|
||||
pub trait MaybeDebugHash: rstd::hash::Hash {}
|
||||
pub trait MaybeDebugHash: sp_std::hash::Hash {}
|
||||
#[cfg(all(not(feature = "std"), feature = "full_crypto"))]
|
||||
impl<T: rstd::hash::Hash> MaybeDebugHash for T {}
|
||||
impl<T: sp_std::hash::Hash> MaybeDebugHash for T {}
|
||||
|
||||
/// A application's public key.
|
||||
pub trait AppPublic:
|
||||
|
||||
Reference in New Issue
Block a user