Skip to content

Commit

Permalink
Merge pull request #11 from dknopik/cargo-maintenance
Browse files Browse the repository at this point in the history
cargo: some maintenance
  • Loading branch information
ppopth authored Nov 1, 2024
2 parents 1e32f46 + f2da572 commit 0d25bc9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 47 deletions.
72 changes: 36 additions & 36 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[workspace.package]
version = "0.1.0"
edition = "2021"
# rust-version = "1.80.0" TODO
rust-version = "1.77"
license = "GPL-3"
description = "Configuration utility for Ethereum network simulations in Shadow"
authors = ["Daniel Knopik <daniel@dknopik.de>"]
authors = ["Pop Chunhapanya <haxx.pop@gmail.com>", "Daniel Knopik <daniel@dknopik.de>"]

[workspace]
members = ["lib"]
Expand All @@ -22,6 +22,7 @@ edition.workspace = true
license.workspace = true
description.workspace = true
authors.workspace = true
rust-version.workspace = true

[[bin]]
name = "ethshadow"
Expand Down
9 changes: 1 addition & 8 deletions ethshadow.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#!/usr/bin/env rust-script
//! ```cargo
//! [dependencies]
//! ethshadow = { path="lib" }
//! clap = { version = "4.5", features = ["cargo"] }
//! ```
use clap::{arg, command, value_parser};
use color_eyre::eyre::WrapErr;
use color_eyre::Result;
Expand All @@ -16,7 +9,7 @@ use std::os::unix::prelude::CommandExt;
use std::path::PathBuf;

fn main() -> Result<()> {
let matches = command!() // requires `cargo` feature
let matches = command!()
.bin_name("ethshadow")
.arg(arg!(dir: -d [DIR] "Output directory for ethshadow and Shadow")
.value_parser(value_parser!(PathBuf))
Expand Down
1 change: 0 additions & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ description.workspace = true
authors.workspace = true

[dependencies]
#shadow-rs = { git = "https://github.com/dknopik/shadow", branch = "ethereum" }
serde_yaml = "0.9" # deprecated, but stable, and what shadow uses
serde = { version = "1.0", features = ["derive"] }
humantime-serde = "1.1"
Expand Down

0 comments on commit 0d25bc9

Please sign in to comment.