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
+4 -4
View File
@@ -1,5 +1,5 @@
[package]
name = "sr-version"
name = "sp-version"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
@@ -8,8 +8,8 @@ edition = "2018"
impl-serde = { version = "0.2.3", optional = true }
serde = { version = "1.0.101", optional = true, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "1.0.5", default-features = false, features = ["derive"] }
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
sr-primitives = { path = "../sr-primitives", default-features = false }
rstd = { package = "sp-std", path = "../sr-std", default-features = false }
sp-runtime = { path = "../sr-primitives", default-features = false }
[features]
default = ["std"]
@@ -18,5 +18,5 @@ std = [
"serde",
"codec/std",
"rstd/std",
"sr-primitives/std",
"sp-runtime/std",
]
+5 -5
View File
@@ -25,16 +25,16 @@ use std::fmt;
#[cfg(feature = "std")]
use std::collections::HashSet;
#[cfg(feature = "std")]
use sr_primitives::traits::RuntimeApiInfo;
use sp_runtime::traits::RuntimeApiInfo;
use codec::Encode;
#[cfg(feature = "std")]
use codec::Decode;
use sr_primitives::RuntimeString;
pub use sr_primitives::create_runtime_str;
use sp_runtime::RuntimeString;
pub use sp_runtime::create_runtime_str;
#[cfg(feature = "std")]
use sr_primitives::{traits::Block as BlockT, generic::BlockId};
use sp_runtime::{traits::Block as BlockT, generic::BlockId};
/// The identity of a particular API interface that the runtime might provide.
pub type ApiId = [u8; 8];
@@ -65,7 +65,7 @@ macro_rules! create_apis_vec {
/// This triplet have different semantics and mis-interpretation could cause problems.
/// In particular: bug fixes should result in an increment of `spec_version` and possibly `authoring_version`,
/// absolutely not `impl_version` since they change the semantics of the runtime.
#[derive(Clone, PartialEq, Eq, Encode, Default, sr_primitives::RuntimeDebug)]
#[derive(Clone, PartialEq, Eq, Encode, Default, sp_runtime::RuntimeDebug)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize, Decode))]
#[cfg_attr(feature = "std", serde(rename_all = "camelCase"))]
pub struct RuntimeVersion {