From ba3c03bdf6b99314e23154bbc54db28afaca2975 Mon Sep 17 00:00:00 2001 From: wasm-forge <122647775+wasm-forge@users.noreply.github.com> Date: Tue, 9 Jul 2024 14:10:41 +0200 Subject: [PATCH] improved messaging --- .github/workflows/rust.yml | 5 ++--- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 12 +++++++----- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 508fa8d..033f842 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,9 +2,9 @@ name: Tests on: push: - branches: [ "master" ] + branches: [ "main" ] pull_request: - branches: [ "master" ] + branches: [ "main" ] env: CARGO_TERM_COLOR: always @@ -24,7 +24,6 @@ jobs: - name: Run tests run: cargo test --verbose - - name: Generate code coverage run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info diff --git a/Cargo.lock b/Cargo.lock index 1a0dc68..0a53a73 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -403,7 +403,7 @@ dependencies = [ [[package]] name = "wasi2ic" -version = "0.2.12" +version = "0.2.13" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index 048aae2..6e3e252 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasi2ic" -version = "0.2.12" +version = "0.2.13" edition = "2021" description = "This tool converts WebAssembly System Interface (WASI) dependent Wasm files to be compatible with the Internet Computer (IC) platform." keywords = ["ic", "internet-computer", "wasi"] diff --git a/src/main.rs b/src/main.rs index 9687abd..93f1061 100644 --- a/src/main.rs +++ b/src/main.rs @@ -295,12 +295,14 @@ fn do_module_replacements(module: &mut walrus::Module) { //fn do_wasm_file_processing(input_wasm: &Path, output_wasm: &Path) -> Result<(), anyhow::Error> { fn do_wasm_file_processing(args: &arguments::Wasm2icArgs) -> Result<(), anyhow::Error> { + log::info!( + "Processing input file: '{}', writing output into '{}'", + args.input_file, + args.output_file + ); + if !args.quiet { - log::info!( - "Processing input file: '{}', writing output into '{}'", - args.input_file, - args.output_file - ); + println!("wasi2ic: processing input file: '{}', writing output into '{}'", args.input_file, args.output_file); } let input_wasm = Path::new(&args.input_file);