Skip to content

Commit

Permalink
fix: rename compile cargo extension command to build; imports cle…
Browse files Browse the repository at this point in the history
…anup;
  • Loading branch information
greenhat committed Dec 5, 2023
1 parent 5f0892f commit a69711b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions tools/cargo-miden/src/cli_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
14 changes: 4 additions & 10 deletions tools/cargo-miden/src/compile.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tools/cargo-miden/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn main() -> anyhow::Result<()> {
};

match args.command {
Commands::Compile {
Commands::Build {
target,
bin_name,
output_folder,
Expand Down

0 comments on commit a69711b

Please sign in to comment.