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:
Benjamin Kampmann
2019-12-02 11:23:53 +01:00
committed by GitHub
parent 40f6d05a4c
commit 927e13c13a
468 changed files with 3383 additions and 3271 deletions
+8 -8
View File
@@ -1,11 +1,11 @@
[package]
name = "substrate-primitives"
name = "sp-core"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
rstd = { package = "sp-std", path = "../sr-std", default-features = false }
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
rustc-hex = { version = "2.0.1", default-features = false }
log = { version = "0.4.8", default-features = false }
@@ -33,13 +33,13 @@ 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 }
tiny-keccak = { version = "2.0.1", features = ["keccak"], optional = true }
substrate-debug-derive = { version = "2.0.0", path = "./debug-derive" }
externalities = { package = "substrate-externalities", path = "../externalities", optional = true }
primitives-storage = { package = "substrate-primitives-storage", path = "storage", default-features = false }
runtime-interface = { package = "substrate-runtime-interface", path = "../runtime-interface", default-features = false }
sp-debug-derive = { version = "2.0.0", path = "./debug-derive" }
externalities = { package = "sp-externalities", path = "../externalities", optional = true }
primitives-storage = { package = "sp-core-storage", path = "storage", default-features = false }
runtime-interface = { package = "sp-runtime-interface", path = "../runtime-interface", default-features = false }
[dev-dependencies]
substrate-serializer = { path = "../serializer" }
sp-serializer = { path = "../serializer" }
pretty_assertions = "0.6.1"
hex-literal = "0.2.1"
rand = "0.7.2"
@@ -89,7 +89,7 @@ std = [
"num-traits/std",
"libsecp256k1",
"tiny-keccak",
"substrate-debug-derive/std",
"sp-debug-derive/std",
"externalities",
"primitives-storage/std",
"runtime-interface/std",
+1 -1
View File
@@ -16,7 +16,7 @@
#[macro_use]
extern crate criterion;
use substrate_primitives as primitives;
use sp_core as primitives;
use criterion::{Criterion, black_box, Bencher, Fun};
use std::time::Duration;
use primitives::crypto::Pair as _;
@@ -1,5 +1,5 @@
[package]
name = "substrate-debug-derive"
name = "sp-debug-derive"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
@@ -25,7 +25,7 @@
//! blob from unneeded code.
//!
//! ```rust
//! #[derive(substrate_debug_derive::RuntimeDebug)]
//! #[derive(sp_debug_derive::RuntimeDebug)]
//! struct MyStruct;
//!
//! assert_eq!(format!("{:?}", MyStruct), "MyStruct");
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
use substrate_debug_derive::RuntimeDebug;
use sp_debug_derive::RuntimeDebug;
#[derive(RuntimeDebug)]
struct Unnamed(u64, String);
+1 -1
View File
@@ -31,7 +31,7 @@ pub fn convert_hash<H1: Default + AsMut<[u8]>, H2: AsRef<[u8]>>(src: &H2) -> H1
#[cfg(test)]
mod tests {
use super::*;
use substrate_serializer as ser;
use sp_serializer as ser;
#[test]
fn test_h160() {
+1 -1
View File
@@ -42,7 +42,7 @@ pub use serde;
#[doc(hidden)]
pub use codec::{Encode, Decode};
pub use substrate_debug_derive::RuntimeDebug;
pub use sp_debug_derive::RuntimeDebug;
#[cfg(feature = "std")]
pub use impl_serde::serialize as bytes;
+1 -1
View File
@@ -141,7 +141,7 @@ impl crate::traits::BareCryptoStore for KeyStore {
/// # Example
///
/// ```
/// # use substrate_primitives::wasm_export_functions;
/// # use sp_core::wasm_export_functions;
///
/// wasm_export_functions! {
/// fn test_in_wasm(value: bool, another_value: Vec<u8>) -> bool {
+1 -1
View File
@@ -22,7 +22,7 @@ pub use primitive_types::U256;
mod tests {
use super::*;
use codec::{Encode, Decode};
use substrate_serializer as ser;
use sp_serializer as ser;
macro_rules! test {
($name: ident, $test_name: ident) => {
+3 -3
View File
@@ -1,15 +1,15 @@
[package]
name = "substrate-primitives-storage"
name = "sp-core-storage"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
description = "Storage related primitives"
[dependencies]
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"] }
impl-serde = { version = "0.2.3", optional = true }
substrate-debug-derive = { version = "2.0.0", path = "../debug-derive" }
sp-debug-derive = { version = "2.0.0", path = "../debug-derive" }
[features]
default = [ "std" ]
+1 -1
View File
@@ -20,7 +20,7 @@
#[cfg(feature = "std")]
use serde::{Serialize, Deserialize};
use substrate_debug_derive::RuntimeDebug;
use sp_debug_derive::RuntimeDebug;
use rstd::{vec::Vec, borrow::Cow};