Skip to content
Merged
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
2 changes: 1 addition & 1 deletion crates/wasm-compose/src/composer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl<'a> CompositionGraphBuilder<'a> {
);
}

log::warn!(
log::info!(
"instance `{name}` will be imported because a dependency named `{component_name}` could not be found"
);
Ok(None)
Expand Down
20 changes: 14 additions & 6 deletions src/bin/wasm-tools/compose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ pub struct Opts {
/// Output the text format of WebAssembly instead of the binary format.
#[clap(short = 't', long)]
wat: bool,

/// Don't print warnings.
#[clap(short, long)]
quiet: bool,
}

impl Opts {
Expand All @@ -53,11 +57,13 @@ impl Opts {
}

pub fn run(self) -> Result<()> {
eprintln!("WARNING: `wasm-tools compose` has been deprecated.");
eprintln!("");
eprintln!(
"Please use `wac` instead. You can find more information about `wac` at https://github.com/bytecodealliance/wac."
);
if !self.quiet {
eprintln!("WARNING: `wasm-tools compose` has been deprecated.");
eprintln!("");
eprintln!(
"Please use `wac` instead. You can find more information about `wac` at https://github.com/bytecodealliance/wac."
);
}
let config = self.create_config()?;
log::debug!("configuration:\n{config:#?}");

Expand All @@ -82,7 +88,9 @@ impl Opts {
}

if let Some(path) = self.output.output_path() {
println!("composed component `{}`", path.display());
if !self.quiet {
println!("composed component `{}`", path.display());
}
}

Ok(())
Expand Down
Loading