Prepare ssz for publishing on crates.io

This commit is contained in:
Paul Hauner
2019-07-03 16:06:20 +10:00
parent d395feb027
commit 027f0a539d
21 changed files with 38 additions and 33 deletions

View File

@@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
parking_lot = "0.7"
store = { path = "../../beacon_node/store" }
ssz = { path = "../utils/ssz" }
eth2_ssz = { path = "../utils/ssz" }
state_processing = { path = "../state_processing" }
types = { path = "../types" }
log = "0.4.6"

View File

@@ -11,5 +11,5 @@ itertools = "0.8"
parking_lot = "0.7"
types = { path = "../types" }
state_processing = { path = "../state_processing" }
ssz = { path = "../utils/ssz" }
ssz_derive = { path = "../utils/ssz_derive" }
eth2_ssz = { path = "../utils/ssz" }
eth2_ssz_derive = { path = "../utils/ssz_derive" }

View File

@@ -24,12 +24,12 @@ integer-sqrt = "0.1"
itertools = "0.8"
log = "0.4"
merkle_proof = { path = "../utils/merkle_proof" }
ssz = { path = "../utils/ssz" }
ssz_derive = { path = "../utils/ssz_derive" }
eth2_ssz = { path = "../utils/ssz" }
eth2_ssz_derive = { path = "../utils/ssz_derive" }
tree_hash = { path = "../utils/tree_hash" }
tree_hash_derive = { path = "../utils/tree_hash_derive" }
types = { path = "../types" }
rayon = "1.0"
[features]
fake_crypto = ["bls/fake_crypto"]
fake_crypto = ["bls/fake_crypto"]

View File

@@ -26,8 +26,8 @@ serde_derive = "1.0"
serde_json = "1.0"
serde_yaml = "0.8"
slog = "^2.2.3"
ssz = { path = "../utils/ssz" }
ssz_derive = { path = "../utils/ssz_derive" }
eth2_ssz = { path = "../utils/ssz" }
eth2_ssz_derive = { path = "../utils/ssz_derive" }
swap_or_not_shuffle = { path = "../utils/swap_or_not_shuffle" }
test_random_derive = { path = "../utils/test_random_derive" }
tree_hash = { path = "../utils/tree_hash" }

View File

@@ -13,7 +13,7 @@ rand = "^0.5"
serde = "1.0"
serde_derive = "1.0"
serde_hex = { path = "../serde_hex" }
ssz = { path = "../ssz" }
eth2_ssz = { path = "../ssz" }
tree_hash = { path = "../tree_hash" }
[features]

View File

@@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
cached_tree_hash = { path = "../cached_tree_hash" }
serde_hex = { path = "../serde_hex" }
ssz = { path = "../ssz" }
eth2_ssz = { path = "../ssz" }
bit-vec = "0.5.0"
bit_reverse = "0.1"
serde = "1.0"

View File

@@ -9,7 +9,7 @@ publish = false
cargo-fuzz = true
[dependencies]
ssz = { path = "../../ssz" }
eth2_ssz = { path = "../../ssz" }
[dependencies.boolean-bitfield]
path = ".."

View File

@@ -9,5 +9,5 @@ cached_tree_hash = { path = "../cached_tree_hash" }
tree_hash = { path = "../tree_hash" }
serde = "1.0"
serde_derive = "1.0"
ssz = { path = "../ssz" }
eth2_ssz = { path = "../ssz" }
typenum = "1.10"

View File

@@ -1,8 +1,12 @@
[package]
name = "ssz"
name = "eth2_ssz"
version = "0.1.0"
authors = ["Paul Hauner <paul@paulhauner.com>"]
authors = ["Paul Hauner <paul@sigmaprime.io>"]
edition = "2018"
description = "SimpleSerialize (SSZ) as used in Ethereum 2.0"
[lib]
name = "ssz"
[[bench]]
name = "benches"
@@ -10,7 +14,7 @@ harness = false
[dev-dependencies]
criterion = "0.2"
ssz_derive = { path = "../ssz_derive" }
eth2_ssz_derive = { path = "../ssz_derive" }
[dependencies]
bytes = "0.4.9"

View File

@@ -2,7 +2,7 @@
//! format designed for use in Ethereum 2.0.
//!
//! Conforms to
//! [v0.6.1](https://github.com/ethereum/eth2.0-specs/blob/v0.6.1/specs/simple-serialize.md) of the
//! [v0.7.1](https://github.com/ethereum/eth2.0-specs/blob/v0.7.1/specs/simple-serialize.md) of the
//! Ethereum 2.0 specification.
//!
//! ## Example

View File

@@ -1,14 +1,15 @@
[package]
name = "ssz_derive"
name = "eth2_ssz_derive"
version = "0.1.0"
authors = ["Paul Hauner <paul@paulhauner.com>"]
authors = ["Paul Hauner <paul@sigmaprime.io>"]
edition = "2018"
description = "Procedural derive macros for SSZ encoding and decoding."
description = "Procedural derive macros to accompany the eth2_ssz crate."
[lib]
name = "ssz_derive"
proc-macro = true
[dependencies]
syn = "0.15"
quote = "0.6"
ssz = { path = "../ssz" }
eth2_ssz = { path = "../ssz" }

View File

@@ -7,5 +7,5 @@ edition = "2018"
[dependencies]
bytes = "0.4.10"
hashing = { path = "../utils/hashing" }
ssz = { path = "../utils/ssz" }
eth2_ssz = { path = "../utils/ssz" }
types = { path = "../types" }