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
9 changes: 9 additions & 0 deletions cmd/soroban-cli/src/commands/contract/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ use crate::{

pub mod archive;
pub mod container;
pub mod image;
pub(crate) mod source_archive;

/// A built WASM artifact with its package name and file path.
Expand Down Expand Up @@ -148,6 +149,7 @@ pub struct Cmd {
#[derive(clap::Subcommand, Debug, Clone)]
pub enum SubCommand {
Archive(archive::Cmd),
Image(image::Cmd),
}

/// Shared build options for meta and optimization, reused by deploy and upload.
Expand Down Expand Up @@ -266,6 +268,9 @@ pub enum Error {

#[error(transparent)]
Archive(#[from] archive::Error),

#[error(transparent)]
Image(#[from] image::Error),
}

pub(crate) const WASM_TARGET: &str = "wasm32v1-none";
Expand Down Expand Up @@ -304,6 +309,10 @@ impl Cmd {
cmd.run(global_args)?;
return Ok(Vec::new());
}
if let Some(SubCommand::Image(cmd)) = &self.command {
cmd.run(global_args).await?;
return Ok(Vec::new());
}

let print = Print::new(global_args.quiet);

Expand Down
Loading