Skip to content
Closed
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
6 changes: 3 additions & 3 deletions zero/src/bin/leader/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ pub(crate) struct Cli {
#[command(subcommand)]
pub(crate) command: Command,

#[clap(flatten)]
#[command(flatten)]
pub(crate) paladin: paladin::config::Config,

#[clap(flatten)]
#[command(flatten)]
pub(crate) prover_config: CliProverConfig,

// Note this is only relevant for the leader when running in in-memory
// mode.
#[clap(flatten)]
#[command(flatten)]
pub(crate) prover_state_config: CliProverStateConfig,

// Mode to use for worker for setup (affinity or default)
Expand Down
2 changes: 1 addition & 1 deletion zero/src/bin/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ enum Command {
#[derive(Parser)]
#[command(version = zero::version(), propagate_version = true)]
struct Cli {
#[clap(flatten)]
#[command(flatten)]
pub(crate) config: RpcToolConfig,

/// Fetch and generate prover input from the RPC endpoint.
Expand Down
2 changes: 1 addition & 1 deletion zero/src/bin/trie_diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use zero::prover::{cli::CliProverConfig, BlockProverInput, ProverConfig};
#[command(version = zero::version(), propagate_version = true)]
pub(crate) struct Cli {
/// Prover configuration
#[clap(flatten)]
#[command(flatten)]
pub(crate) prover_config: CliProverConfig,

/// The previous proof output.
Expand Down
2 changes: 1 addition & 1 deletion zero/src/bin/verifier/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ pub(crate) struct Cli {
pub(crate) file_path: PathBuf,
/// The prover configuration used to generate the preprocessed circuits
/// and the verifier state.
#[clap(flatten)]
#[command(flatten)]
pub(crate) prover_state_config: CliProverStateConfig,
}
4 changes: 2 additions & 2 deletions zero/src/bin/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;
#[derive(Parser)]
#[command(version = zero::version(), propagate_version = true)]
struct Cli {
#[clap(flatten)]
#[command(flatten)]
paladin: paladin::config::Config,
#[clap(flatten)]
#[command(flatten)]
prover_state_config: CliProverStateConfig,
}

Expand Down
6 changes: 3 additions & 3 deletions zero/src/prover_state/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ macro_rules! gen_prover_state_config {
($($name:ident: $circuit:expr),*) => {
#[derive(Args, Debug)]
pub struct CliProverStateConfig {
#[clap(long, help_heading = HEADING, default_value_t = CircuitPersistence::Disk)]
#[arg(long, help_heading = HEADING, default_value_t = CircuitPersistence::Disk)]
pub persistence: CircuitPersistence,
#[clap(long, help_heading = HEADING, default_value_t = TableLoadStrategy::OnDemand)]
#[arg(long, help_heading = HEADING, default_value_t = TableLoadStrategy::OnDemand)]
pub load_strategy: TableLoadStrategy,
/// Run with a low-security but fast STARK configuration. Enable this only for testing.
#[arg(long)]
pub use_test_config: bool,

$(
#[clap(
#[arg(
long,
value_name = VALUE_NAME,
help_heading = HEADING,
Expand Down