Skip to content

Commit

Permalink
chore: deprecate cargo prove (#1792)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhtyy authored Nov 20, 2024
1 parent e2cc7af commit 911e59b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 160 deletions.
14 changes: 4 additions & 10 deletions crates/cli/src/bin/cargo-prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ use clap::{Parser, Subcommand};
use sp1_cli::{
commands::{
build::BuildCmd, build_toolchain::BuildToolchainCmd,
install_toolchain::InstallToolchainCmd, new::NewCmd, prove::ProveCmd, trace::TraceCmd,
vkey::VkeyCmd,
install_toolchain::InstallToolchainCmd, new::NewCmd, trace::TraceCmd, vkey::VkeyCmd,
},
SP1_VERSION_MESSAGE,
};
Expand All @@ -19,17 +18,13 @@ pub enum Cargo {
#[command(author, about, long_about = None, args_conflicts_with_subcommands = true, version = SP1_VERSION_MESSAGE)]
pub struct ProveCli {
#[clap(subcommand)]
pub command: Option<ProveCliCommands>,

#[clap(flatten)]
pub prove: ProveCmd,
pub command: ProveCliCommands,
}

#[derive(Subcommand)]
pub enum ProveCliCommands {
New(NewCmd),
Build(BuildCmd),
Prove(ProveCmd),
BuildToolchain(BuildToolchainCmd),
InstallToolchain(InstallToolchainCmd),
Trace(TraceCmd),
Expand All @@ -38,11 +33,10 @@ pub enum ProveCliCommands {

fn main() -> Result<()> {
let Cargo::Prove(args) = Cargo::parse();
let command = args.command.unwrap_or(ProveCliCommands::Prove(args.prove));
match command {

match args.command {
ProveCliCommands::New(cmd) => cmd.run(),
ProveCliCommands::Build(cmd) => cmd.run(),
ProveCliCommands::Prove(cmd) => cmd.run(),
ProveCliCommands::BuildToolchain(cmd) => cmd.run(),
ProveCliCommands::InstallToolchain(cmd) => cmd.run(),
ProveCliCommands::Trace(cmd) => cmd.run(),
Expand Down
1 change: 0 additions & 1 deletion crates/cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ pub mod build;
pub mod build_toolchain;
pub mod install_toolchain;
pub mod new;
pub mod prove;
pub mod trace;
pub mod vkey;
133 changes: 0 additions & 133 deletions crates/cli/src/commands/prove.rs

This file was deleted.

1 change: 0 additions & 1 deletion crates/cli/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pub mod commands;
mod util;

use anyhow::{Context, Result};
use reqwest::Client;
Expand Down
15 changes: 0 additions & 15 deletions crates/cli/src/util.rs

This file was deleted.

0 comments on commit 911e59b

Please sign in to comment.