Skip to content

Commit

Permalink
remove cli batteries
Browse files Browse the repository at this point in the history
  • Loading branch information
ec2 committed Jan 10, 2024
1 parent 275202a commit 413cf07
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
6 changes: 1 addition & 5 deletions prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ path = "src/main.rs"
# cli
clap = { version = "4.2", features = ["derive"] }
strum = { version = "=0.25", features = ["derive"] }
cli-batteries = "0.5"
hex = "0.4"
eyre = "0.6"
anstyle = "1.0.0"
axum = { version = "0.7", features = ["tracing", "tower-log"] }
tokio = { version = "1.32", features = ["macros"] }

jsonrpc-v2 = { version = "0.13", default-features = false, features = ["easy-errors", "macros", "bytes-v10", "hyper-integration"] }
tracing-subscriber = "0.3"

# halo2
halo2curves.workspace = true
Expand Down Expand Up @@ -55,9 +54,6 @@ ethereum-consensus-types.workspace = true
futures = "0.3.29"
ssz_rs.workspace = true

[build-dependencies]
cli-batteries = "=0.5"

[features]
default = ["halo2_solidity_verifier"]
experimental = ["halo2_solidity_verifier_new"]
7 changes: 0 additions & 7 deletions prover/build.rs

This file was deleted.

10 changes: 6 additions & 4 deletions prover/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ mod utils;

use crate::{cli::spec_app, rpc::run_rpc};
use args::Cli;
use cli_batteries::version;
use clap::Parser;
use utils::utils_cli;

mod args;

async fn app(options: Cli) -> eyre::Result<()> {
Expand Down Expand Up @@ -61,6 +60,9 @@ async fn app(options: Cli) -> eyre::Result<()> {
}
}

fn main() {
cli_batteries::run(version!(), app);
#[tokio::main]
async fn main() {
let args = Cli::parse();
tracing_subscriber::fmt::init();
app(args).await.unwrap();
}

0 comments on commit 413cf07

Please sign in to comment.