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
+15 -15
View File
@@ -1,5 +1,5 @@
[package]
name = "substrate-executor"
name = "sc-executor"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
@@ -7,18 +7,18 @@ edition = "2018"
[dependencies]
derive_more = "0.99.2"
codec = { package = "parity-scale-codec", version = "1.0.0" }
runtime_io = { package = "sr-io", path = "../../primitives/sr-io" }
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
trie = { package = "substrate-trie", path = "../../primitives/trie" }
serializer = { package = "substrate-serializer", path = "../../primitives/serializer" }
runtime_version = { package = "sr-version", path = "../../primitives/sr-version" }
panic-handler = { package = "substrate-panic-handler", path = "../../primitives/panic-handler" }
runtime_io = { package = "sp-io", path = "../../primitives/sr-io" }
primitives = { package = "sp-core", path = "../../primitives/core" }
trie = { package = "sp-trie", path = "../../primitives/trie" }
serializer = { package = "sp-serializer", path = "../../primitives/serializer" }
runtime_version = { package = "sp-version", path = "../../primitives/sr-version" }
panic-handler = { package = "sp-panic-handler", path = "../../primitives/panic-handler" }
wasmi = "0.6.2"
parity-wasm = "0.41.0"
lazy_static = "1.4.0"
wasm-interface = { package = "substrate-wasm-interface", path = "../../primitives/wasm-interface" }
runtime-interface = { package = "substrate-runtime-interface", path = "../../primitives/runtime-interface" }
externalities = { package = "substrate-externalities", path = "../../primitives/externalities" }
wasm-interface = { package = "sp-wasm-interface", path = "../../primitives/wasm-interface" }
runtime-interface = { package = "sp-runtime-interface", path = "../../primitives/runtime-interface" }
externalities = { package = "sp-externalities", path = "../../primitives/externalities" }
parking_lot = "0.9.0"
log = "0.4.8"
libsecp256k1 = "0.3.2"
@@ -36,12 +36,12 @@ wasmtime-runtime = { version = "0.8", optional = true }
assert_matches = "1.3.0"
wabt = "0.9.2"
hex-literal = "0.2.1"
runtime-test = { package = "substrate-runtime-test", path = "runtime-test" }
runtime-test = { package = "sc-runtime-test", path = "runtime-test" }
test-runtime = { package = "substrate-test-runtime", path = "../../test/utils/runtime" }
runtime-interface = { package = "substrate-runtime-interface", path = "../../primitives/runtime-interface" }
client-api = { package = "substrate-client-api", path = "../api" }
substrate-offchain = { path = "../offchain/" }
state_machine = { package = "substrate-state-machine", path = "../../primitives/state-machine" }
runtime-interface = { package = "sp-runtime-interface", path = "../../primitives/runtime-interface" }
client-api = { package = "sc-client-api", path = "../api" }
sc-offchain = { path = "../offchain/" }
state_machine = { package = "sp-state-machine", path = "../../primitives/state-machine" }
test-case = "0.3.3"
[features]
@@ -1,16 +1,16 @@
[package]
name = "substrate-runtime-test"
name = "sc-runtime-test"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
build = "build.rs"
[dependencies]
rstd = { package = "sr-std", path = "../../../primitives/sr-std", default-features = false }
runtime_io = { package = "sr-io", path = "../../../primitives/sr-io", default-features = false }
sandbox = { package = "sr-sandbox", path = "../../../primitives/sr-sandbox", default-features = false }
primitives = { package = "substrate-primitives", path = "../../../primitives/core", default-features = false }
sr-primitives = { package = "sr-primitives", path = "../../../primitives/sr-primitives", default-features = false }
rstd = { package = "sp-std", path = "../../../primitives/sr-std", default-features = false }
runtime_io = { package = "sp-io", path = "../../../primitives/sr-io", default-features = false }
sandbox = { package = "sp-sandbox", path = "../../../primitives/sr-sandbox", default-features = false }
primitives = { package = "sp-core", path = "../../../primitives/core", default-features = false }
sp-runtime = { package = "sp-runtime", path = "../../../primitives/sr-primitives", default-features = false }
[build-dependencies]
wasm-builder-runner = { package = "substrate-wasm-builder-runner", path = "../../../client/utils/wasm-builder-runner", version = "1.0.4" }
@@ -14,7 +14,7 @@ use runtime_io::{
crypto::{ed25519_verify, sr25519_verify},
};
#[cfg(not(feature = "std"))]
use sr_primitives::{print, traits::{BlakeTwo256, Hash}};
use sp_runtime::{print, traits::{BlakeTwo256, Hash}};
#[cfg(not(feature = "std"))]
use primitives::{ed25519, sr25519};
@@ -79,13 +79,13 @@ impl_wasm_host_interface! {
impl SubstrateExternals where context {
ext_malloc(size: WordSize) -> Pointer<u8> {
let r = context.allocate_memory(size)?;
debug_trace!(target: "sr-io", "malloc {} bytes at {:?}", size, r);
debug_trace!(target: "sp-io", "malloc {} bytes at {:?}", size, r);
Ok(r)
}
ext_free(addr: Pointer<u8>) {
context.deallocate_memory(addr)?;
debug_trace!(target: "sr-io", "free {:?}", addr);
debug_trace!(target: "sp-io", "free {:?}", addr);
Ok(())
}
@@ -265,7 +265,7 @@ impl<D: NativeExecutionDispatch> CodeExecutor for NativeExecutor<D> {
/// # Example
///
/// ```
/// substrate_executor::native_executor_instance!(
/// sc_executor::native_executor_instance!(
/// pub MyExecutor,
/// test_runtime::api::dispatch,
/// test_runtime::native_version,
@@ -287,7 +287,7 @@ impl<D: NativeExecutionDispatch> CodeExecutor for NativeExecutor<D> {
/// }
/// }
///
/// substrate_executor::native_executor_instance!(
/// sc_executor::native_executor_instance!(
/// pub MyExecutor,
/// test_runtime::api::dispatch,
/// test_runtime::native_version,
@@ -206,7 +206,7 @@ impl<'a> Sandbox for FunctionExecutor<'a> {
return_val_len: WordSize,
state: u32,
) -> WResult<u32> {
trace!(target: "sr-sandbox", "invoke, instance_idx={}", instance_id);
trace!(target: "sp-sandbox", "invoke, instance_idx={}", instance_id);
// Deserialize arguments and convert them into wasmi types.
let args = Vec::<sandbox_primitives::TypedValue>::decode(&mut &args[..])
@@ -283,7 +283,7 @@ impl<'a> Sandbox for FunctionExecutor<'a> {
return_val_len: u32,
state: u32,
) -> WResult<u32> {
trace!(target: "sr-sandbox", "invoke, instance_idx={}", instance_id);
trace!(target: "sp-sandbox", "invoke, instance_idx={}", instance_id);
// Deserialize arguments and convert them into wasmi types.
let args = Vec::<sandbox_primitives::TypedValue>::decode(&mut &args[..])