Rename polkadot-serializer -> substrate-serializer

This commit is contained in:
Gav
2018-02-07 11:47:30 +01:00
parent 6071774f57
commit a5195dfce6
21 changed files with 56 additions and 57 deletions
+13 -13
View File
@@ -1003,10 +1003,10 @@ dependencies = [
"log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
"native-runtime 0.1.0",
"parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
"polkadot-serializer 0.1.0",
"substrate-codec 0.1.0",
"substrate-executor 0.1.0",
"substrate-primitives 0.1.0",
"substrate-serializer 0.1.0",
"substrate-state-machine 0.1.0",
"triehash 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
@@ -1033,7 +1033,6 @@ dependencies = [
"log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
"parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
"polkadot-client 0.1.0",
"polkadot-serializer 0.1.0",
"rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)",
"semver 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -1041,6 +1040,7 @@ dependencies = [
"serde_json 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)",
"smallvec 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-primitives 0.1.0",
"substrate-serializer 0.1.0",
"substrate-state-machine 0.1.0",
]
@@ -1082,22 +1082,14 @@ dependencies = [
"triehash 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "polkadot-serializer"
version = "0.1.0"
dependencies = [
"serde 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "polkadot-validator"
version = "0.1.0"
dependencies = [
"error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
"polkadot-serializer 0.1.0",
"serde 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-primitives 0.1.0",
"substrate-serializer 0.1.0",
]
[[package]]
@@ -1434,12 +1426,12 @@ dependencies = [
"native-runtime 0.1.0",
"parity-wasm 0.15.4 (registry+https://github.com/rust-lang/crates.io-index)",
"polkadot-runtime-std 0.1.0",
"polkadot-serializer 0.1.0",
"rustc-hex 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-codec 0.1.0",
"substrate-primitives 0.1.0",
"substrate-serializer 0.1.0",
"substrate-state-machine 0.1.0",
"triehash 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
@@ -1452,16 +1444,24 @@ dependencies = [
"byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"crunchy 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
"fixed-hash 0.1.3 (git+https://github.com/rphmeier/primitives.git?branch=compile-for-wasm)",
"polkadot-serializer 0.1.0",
"pretty_assertions 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc-hex 2.0.0 (git+https://github.com/rphmeier/rustc-hex.git)",
"serde 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-codec 0.1.0",
"substrate-serializer 0.1.0",
"twox-hash 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"uint 0.1.2 (git+https://github.com/rphmeier/primitives.git?branch=compile-for-wasm)",
]
[[package]]
name = "substrate-serializer"
version = "0.1.0"
dependencies = [
"serde 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "substrate-state-machine"
version = "0.1.0"
+1 -1
View File
@@ -9,7 +9,7 @@ log = "0.3"
parking_lot = "0.4"
substrate-primitives = { path = "../primitives", version = "0.1" }
substrate-state-machine = { path = "../state-machine", version = "0.1" }
polkadot-serializer = { path = "../serializer" }
substrate-serializer = { path = "../serializer" }
substrate-executor = { path = "../executor" }
substrate-codec = { path = "../codec", version = "0.1" }
native-runtime = { path = "../native-runtime" }
+1 -1
View File
@@ -20,7 +20,7 @@
extern crate substrate_primitives as primitives;
extern crate substrate_state_machine as state_machine;
extern crate polkadot_serializer as ser;
extern crate substrate_serializer as ser;
extern crate substrate_codec as codec;
extern crate substrate_executor;
extern crate native_runtime;
+7 -7
View File
@@ -5,13 +5,13 @@ authors = ["Parity Technologies <admin@parity.io>"]
[dependencies]
error-chain = "0.11"
substrate-codec = { path = "../codec", version = "0.1" }
polkadot-runtime-std = { path = "../runtime-std", version = "0.1" }
substrate-primitives = { path = "../primitives", version = "0.1" }
polkadot-serializer = { path = "../serializer", version = "0.1" }
substrate-state-machine = { path = "../state-machine" , version = "0.1" }
native-runtime = { path = "../native-runtime", version = "0.1" }
ed25519 = { path = "../ed25519", version = "0.1" }
substrate-codec = { path = "../codec" }
polkadot-runtime-std = { path = "../runtime-std" }
substrate-primitives = { path = "../primitives" }
substrate-serializer = { path = "../serializer" }
substrate-state-machine = { path = "../state-machine" }
native-runtime = { path = "../native-runtime" }
ed25519 = { path = "../ed25519" }
serde = "1.0"
serde_derive = "1.0"
parity-wasm = "0.15.0"
+1 -1
View File
@@ -30,7 +30,7 @@
extern crate substrate_codec as codec;
extern crate polkadot_runtime_std as runtime_std;
extern crate substrate_primitives as primitives;
extern crate polkadot_serializer as serializer;
extern crate substrate_serializer as serializer;
extern crate substrate_state_machine as state_machine;
extern crate ed25519;
+1 -1
View File
@@ -13,7 +13,7 @@ ethcore-io = { git = "https://github.com/paritytech/parity.git" }
substrate-primitives = { path = "../primitives" }
polkadot-client = { path = "../client" }
substrate-state-machine = { path = "../state-machine" }
polkadot-serializer = { path = "../serializer" }
substrate-serializer = { path = "../serializer" }
log = "0.3"
env_logger = "0.4"
rand = "0.3"
+1 -1
View File
@@ -30,7 +30,7 @@ extern crate ipnetwork;
extern crate substrate_primitives as primitives;
extern crate polkadot_client as client;
extern crate substrate_state_machine as state_machine;
extern crate polkadot_serializer as ser;
extern crate substrate_serializer as ser;
extern crate serde;
extern crate serde_json;
#[macro_use] extern crate serde_derive;
+2 -2
View File
@@ -13,10 +13,10 @@ uint = { git = "https://github.com/rphmeier/primitives.git", branch = "compile-f
twox-hash = { version = "1.1.0", optional = true }
byteorder = { version = "1.1", default_features = false }
blake2-rfc = { version = "0.2.18", optional = true }
substrate-codec = { path = "../codec", version = "0.1", default_features = false }
substrate-codec = { path = "../codec", default_features = false }
[dev-dependencies]
polkadot-serializer = { path = "../serializer", version = "0.1" }
substrate-serializer = { path = "../serializer" }
pretty_assertions = "0.4"
[features]
+1 -1
View File
@@ -57,7 +57,7 @@ impl_serde!(H512, 64);
#[cfg(test)]
mod tests {
use super::*;
use polkadot_serializer as ser;
use substrate_serializer as ser;
#[test]
fn test_h160() {
+1 -1
View File
@@ -45,7 +45,7 @@ extern crate uint as uint_crate;
extern crate core;
extern crate substrate_codec as codec;
#[cfg(test)]
extern crate polkadot_serializer;
extern crate substrate_serializer;
#[cfg(test)]
#[macro_use]
extern crate pretty_assertions;
+1 -1
View File
@@ -136,7 +136,7 @@ impl ::codec::Slicable for Activity {
#[cfg(test)]
mod tests {
use super::*;
use polkadot_serializer as ser;
use substrate_serializer as ser;
#[test]
fn test_candidate() {
+1 -1
View File
@@ -178,7 +178,7 @@ pub struct Body {
mod tests {
use super::*;
use codec::Slicable;
use polkadot_serializer as ser;
use substrate_serializer as ser;
#[test]
fn test_header_serialization() {
+1 -1
View File
@@ -47,7 +47,7 @@ impl_serde!(U512, 8);
#[cfg(test)]
mod tests {
use super::*;
use polkadot_serializer as ser;
use substrate_serializer as ser;
macro_rules! test {
($name: ident, $test_name: ident) => {
+1 -1
View File
@@ -53,7 +53,7 @@ pub struct ValidationResult {
#[cfg(test)]
mod tests {
use super::*;
use polkadot_serializer as ser;
use substrate_serializer as ser;
#[test]
fn test_validation_result() {
+1 -1
View File
@@ -1,5 +1,5 @@
[package]
name = "polkadot-serializer"
name = "substrate-serializer"
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
+5 -6
View File
@@ -1,20 +1,20 @@
// Copyright 2017 Parity Technologies (UK) Ltd.
// This file is part of Polkadot.
// This file is part of Substrate.
// Polkadot is free software: you can redistribute it and/or modify
// Substrate is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Polkadot is distributed in the hope that it will be useful,
// Substrate is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
//! Polkadot customizable serde serializer.
//! Substrate customizable serde serializer.
//!
//! The idea is that we can later change the implementation
//! to something more compact, but for now we're using JSON.
@@ -42,4 +42,3 @@ pub fn to_vec<T: serde::Serialize + ?Sized>(value: &T) -> Vec<u8> {
pub fn to_writer<W: ::std::io::Write, T: serde::Serialize + ?Sized>(writer: W, value: &T) -> Result<()> {
serde_json::to_writer(writer, value)
}
+2 -2
View File
@@ -5,6 +5,6 @@ authors = ["Parity Technologies <admin@parity.io>"]
[dependencies]
error-chain = "0.11"
substrate-primitives = { path = "../primitives", version = "0.1" }
polkadot-serializer = { path = "../serializer", version = "0.1" }
substrate-primitives = { path = "../primitives" }
substrate-serializer = { path = "../serializer" }
serde = "1.0"
+1 -1
View File
@@ -19,7 +19,7 @@
#[warn(missing_docs)]
extern crate substrate_primitives as primitives;
extern crate polkadot_serializer as serializer;
extern crate substrate_serializer as serializer;
extern crate serde;
#[macro_use]
+14 -14
View File
@@ -381,25 +381,12 @@ version = "0.1.0"
dependencies = [
"ed25519 0.1.0",
"environmental 0.1.0",
"substrate-state-machine 0.1.0",
"pwasm-alloc 0.1.0",
"pwasm-libc 0.1.0",
"rustc_version 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-codec 0.1.0",
"substrate-primitives 0.1.0",
"triehash 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "substrate-state-machine"
version = "0.1.0"
dependencies = [
"byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"hashdb 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"hex-literal 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"memorydb 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"patricia-trie 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-primitives 0.1.0",
"substrate-state-machine 0.1.0",
"triehash 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
@@ -633,6 +620,19 @@ dependencies = [
"uint 0.1.2 (git+https://github.com/rphmeier/primitives.git?branch=compile-for-wasm)",
]
[[package]]
name = "substrate-state-machine"
version = "0.1.0"
dependencies = [
"byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"hashdb 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"hex-literal 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"memorydb 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"patricia-trie 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-primitives 0.1.0",
"triehash 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "syn"
version = "0.11.11"