mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 03:31:10 +00:00
The crate rename (#4223)
* Adding script for rename, could be applicable for nodes on top of it, too * add stderr and gitlab ci features * apply script * fix now minor details in expected stderr * Update the Cargo.lock * fix name: sc-transaction -> sc-tracing * fix rename in script, too
This commit is contained in:
committed by
GitHub
parent
40f6d05a4c
commit
927e13c13a
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "sr-arithmetic"
|
||||
name = "sp-arithmetic"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -8,9 +8,9 @@ edition = "2018"
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
integer-sqrt = "0.1.2"
|
||||
num-traits = { version = "0.2.8", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
|
||||
rstd = { package = "sp-std", path = "../sr-std", default-features = false }
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
substrate-debug-derive = { path = "../../primitives/core/debug-derive", default-features = false }
|
||||
sp-debug-derive = { path = "../../primitives/core/debug-derive", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
primitive-types = "0.6.0"
|
||||
@@ -24,7 +24,7 @@ std = [
|
||||
"num-traits/std",
|
||||
"rstd/std",
|
||||
"serde",
|
||||
"substrate-debug-derive/std",
|
||||
"sp-debug-derive/std",
|
||||
]
|
||||
|
||||
[[bench]]
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use criterion::{Criterion, Throughput, BenchmarkId, criterion_group, criterion_main};
|
||||
use sr_arithmetic::biguint::{BigUint, Single};
|
||||
use sp_arithmetic::biguint::{BigUint, Single};
|
||||
use rand::Rng;
|
||||
|
||||
fn random_big_uint(size: usize) -> BigUint {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
[package]
|
||||
name = "sr-arithmetic-fuzzer"
|
||||
name = "sp-arithmetic-fuzzer"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
sr-arithmetic = { path = ".." }
|
||||
sp-arithmetic = { path = ".." }
|
||||
honggfuzz = "0.5"
|
||||
primitive-types = "0.6"
|
||||
num-bigint = "0.2"
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
//! [here](https://docs.rs/honggfuzz/).
|
||||
|
||||
use honggfuzz::fuzz;
|
||||
use sr_arithmetic::biguint::{BigUint, Single};
|
||||
use sp_arithmetic::biguint::{BigUint, Single};
|
||||
use std::convert::TryFrom;
|
||||
|
||||
fn main() {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
//! [here](https://docs.rs/honggfuzz/).
|
||||
|
||||
use honggfuzz::fuzz;
|
||||
use sr_arithmetic::{helpers_128bit::multiply_by_rational, traits::Zero};
|
||||
use sp_arithmetic::{helpers_128bit::multiply_by_rational, traits::Zero};
|
||||
|
||||
fn main() {
|
||||
loop {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
/// Copied from `sr-primitives` and documented there.
|
||||
/// Copied from `sp-runtime` and documented there.
|
||||
#[cfg(test)]
|
||||
macro_rules! assert_eq_error_rate {
|
||||
($x:expr, $y:expr, $error:expr $(,)?) => {
|
||||
|
||||
@@ -20,7 +20,7 @@ use serde::{Serialize, Deserialize};
|
||||
use rstd::{ops, prelude::*, convert::TryInto};
|
||||
use codec::{Encode, Decode, CompactAs};
|
||||
use crate::traits::{SaturatedConversion, UniqueSaturatedInto, Saturating};
|
||||
use substrate_debug_derive::RuntimeDebug;
|
||||
use sp_debug_derive::RuntimeDebug;
|
||||
|
||||
macro_rules! implement_per_thing {
|
||||
($name:ident, $test_mod:ident, [$($test_units:tt),+], $max:tt, $type:ty, $upper_type:ty, $title:expr $(,)?) => {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
use rstd::{cmp::Ordering, prelude::*};
|
||||
use crate::helpers_128bit;
|
||||
use num_traits::Zero;
|
||||
use substrate_debug_derive::RuntimeDebug;
|
||||
use sp_debug_derive::RuntimeDebug;
|
||||
|
||||
/// A wrapper for any rational number with a 128 bit numerator and denominator.
|
||||
#[derive(Clone, Copy, Default, Eq, RuntimeDebug)]
|
||||
|
||||
Reference in New Issue
Block a user