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
+5 -5
View File
@@ -1,14 +1,14 @@
[package]
name = "substrate-session"
name = "sp-sesssion"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
sr-api = { path = "../sr-api", default-features = false }
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
sr-primitives = { path = "../sr-primitives", optional = true }
sp-api = { path = "../sr-api", default-features = false }
rstd = { package = "sp-std", path = "../sr-std", default-features = false }
sp-runtime = { path = "../sr-primitives", optional = true }
[features]
default = [ "std" ]
std = [ "sr-api/std", "rstd/std", "sr-primitives" ]
std = [ "sp-api/std", "rstd/std", "sp-runtime" ]
+3 -3
View File
@@ -21,9 +21,9 @@
use rstd::vec::Vec;
#[cfg(feature = "std")]
use sr_primitives::{generic::BlockId, traits::{ProvideRuntimeApi, Block as BlockT}};
use sp_runtime::{generic::BlockId, traits::{ProvideRuntimeApi, Block as BlockT}};
sr_api::decl_runtime_apis! {
sp_api::decl_runtime_apis! {
/// Session keys runtime api.
pub trait SessionKeys {
/// Generate a set of session keys with optionally using the given seed.
@@ -44,7 +44,7 @@ pub fn generate_initial_session_keys<Block, T>(
client: std::sync::Arc<T>,
at: &BlockId<Block>,
seeds: Vec<String>,
) -> Result<(), <<T as ProvideRuntimeApi>::Api as sr_api::ApiExt<Block>>::Error>
) -> Result<(), <<T as ProvideRuntimeApi>::Api as sp_api::ApiExt<Block>>::Error>
where
Block: BlockT,
T: ProvideRuntimeApi,