Skip to content

Commit

Permalink
improved messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
wasm-forge committed Jul 9, 2024
1 parent 5ca45fa commit ba3c03b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Tests

on:
push:
branches: [ "master" ]
branches: [ "main" ]
pull_request:
branches: [ "master" ]
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
12 changes: 7 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ba3c03b

Please sign in to comment.