Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo: some maintenance #11

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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