diff --git a/tools/cargo-miden/src/cli_commands.rs b/tools/cargo-miden/src/cli_commands.rs index 3cf7f204c..ef8deb341 100644 --- a/tools/cargo-miden/src/cli_commands.rs +++ b/tools/cargo-miden/src/cli_commands.rs @@ -23,8 +23,8 @@ pub struct MidenArgs { #[derive(Debug, Subcommand)] pub enum Commands { /// Compile the current project to MASM - #[command(name = "compile")] - Compile { + #[command(name = "build")] + Build { /// The target environment to compile for #[arg(long = "target", value_name = "TARGET", default_value_t = TargetEnv::Base)] target: TargetEnv, diff --git a/tools/cargo-miden/src/compile.rs b/tools/cargo-miden/src/compile.rs index 2d820b2e5..589cb7245 100644 --- a/tools/cargo-miden/src/compile.rs +++ b/tools/cargo-miden/src/compile.rs @@ -1,20 +1,14 @@ use anyhow::bail; use cargo_metadata::Message; -use std::path::PathBuf; use std::process::Command; -use std::process::Stdio; use std::sync::Arc; +use std::{path::PathBuf, process::Stdio}; use anyhow::Context; use miden_diagnostics::Verbosity; -use midenc_session::InputFile; -use midenc_session::OutputFile; -use midenc_session::OutputType; -use midenc_session::OutputTypeSpec; -use midenc_session::OutputTypes; -use midenc_session::ProjectType; -use midenc_session::Session; -use midenc_session::TargetEnv; +use midenc_session::{ + InputFile, OutputFile, OutputType, OutputTypeSpec, OutputTypes, ProjectType, Session, TargetEnv, +}; pub fn compile( target: TargetEnv, diff --git a/tools/cargo-miden/src/main.rs b/tools/cargo-miden/src/main.rs index 6a82d4646..971252d4a 100644 --- a/tools/cargo-miden/src/main.rs +++ b/tools/cargo-miden/src/main.rs @@ -13,7 +13,7 @@ fn main() -> anyhow::Result<()> { }; match args.command { - Commands::Compile { + Commands::Build { target, bin_name, output_folder,