Skip to content

Commit

Permalink
Merge pull request #204 from ralexstokes/refactor-to-workspace
Browse files Browse the repository at this point in the history
refactor crate to workspace
  • Loading branch information
ralexstokes committed Jul 16, 2023
2 parents 6d34a94 + 1cc696b commit d510f75
Show file tree
Hide file tree
Showing 1,607 changed files with 61 additions and 55 deletions.
60 changes: 5 additions & 55 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,56 +1,6 @@
[package]
name = "ethereum-consensus"
version = "0.1.1"
edition = "2021"
license = "MIT OR Apache-2.0"
[workspace]
resolver = "2"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["serde", "async"]
serde = ["dep:serde", "hex", "serde_json", "serde_yaml"]
async = ["tokio", "tokio-stream", "async-stream"]
spec-tests = ["serde", "serde_yaml"]
gen-spec = ["syn", "prettyplease", "quote"]
gen-tests = ["walkdir", "convert_case"]

[dependencies]
ssz_rs = "0.9.0"
blst = "0.3.6"
rand = "0.8.4"
thiserror = "1.0.30"
sha2 = "0.9.8"
integer-sqrt = "0.1.5"
enr = "0.6.2"
multihash = { version = "0.16", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] }
multiaddr = "0.14.0"

serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0.81", optional = true }
serde_yaml = { version = "0.8", optional = true }
hex = {version = "0.4.3", optional = true }

tokio = { version = "1.18.2", features = ["full"], optional = true }
tokio-stream = { version = "0.1.8", optional = true }
async-stream = { version = "0.3.3", optional = true }

syn = { version = "1.0.98", features = ["full", "visit", "visit-mut", "extra-traits"], optional = true }
prettyplease = { version = "0.1.10", optional = true }
quote = { version = "1.0.18", optional = true }

walkdir = { version = "2.3.2", optional = true }
convert_case = { version = "0.5.0", optional = true }
bs58 = "0.4.0"

[dev-dependencies]
serde_with = "1.13.0"
snap = "1"

[[bin]]
name = "gen-spec"
path = "src/bin/gen_spec.rs"
required-features = ["gen-spec"]

[[bin]]
name = "gen-tests"
path = "src/bin/gen_tests.rs"
required-features = ["gen-tests"]
members = [
"ethereum-consensus",
]
56 changes: 56 additions & 0 deletions ethereum-consensus/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[package]
name = "ethereum-consensus"
version = "0.1.1"
edition = "2021"
license = "MIT OR Apache-2.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["serde", "async"]
serde = ["dep:serde", "hex", "serde_json", "serde_yaml"]
async = ["tokio", "tokio-stream", "async-stream"]
spec-tests = ["serde", "serde_yaml"]
gen-spec = ["syn", "prettyplease", "quote"]
gen-tests = ["walkdir", "convert_case"]

[dependencies]
ssz_rs = "0.9.0"
blst = "0.3.6"
rand = "0.8.4"
thiserror = "1.0.30"
sha2 = "0.9.8"
integer-sqrt = "0.1.5"
enr = "0.6.2"
multihash = { version = "0.16", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] }
multiaddr = "0.14.0"

serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0.81", optional = true }
serde_yaml = { version = "0.8", optional = true }
hex = {version = "0.4.3", optional = true }

tokio = { version = "1.18.2", features = ["full"], optional = true }
tokio-stream = { version = "0.1.8", optional = true }
async-stream = { version = "0.3.3", optional = true }

syn = { version = "1.0.98", features = ["full", "visit", "visit-mut", "extra-traits"], optional = true }
prettyplease = { version = "0.1.10", optional = true }
quote = { version = "1.0.18", optional = true }

walkdir = { version = "2.3.2", optional = true }
convert_case = { version = "0.5.0", optional = true }
bs58 = "0.4.0"

[dev-dependencies]
serde_with = "1.13.0"
snap = "1"

[[bin]]
name = "gen-spec"
path = "src/bin/gen_spec.rs"
required-features = ["gen-spec"]

[[bin]]
name = "gen-tests"
path = "src/bin/gen_tests.rs"
required-features = ["gen-tests"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit d510f75

Please sign in to comment.