Skip to content

Commit

Permalink
fix: display wasm function return value
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 21, 2024
1 parent 28e1d44 commit 1c3b6ff
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
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.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ cargo run -p fluentci-engine -- serve
## 📦 Downloads

- `Mac`: arm64: [fluentci-engine_v0.4.9_aarch64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.9/fluentci-engine_v0.4.9_aarch64-apple-darwin.tar.gz) intel: [fluentci-engine_v0.4.9_x86_64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.9/fluentci-engine_v0.4.9_x86_64-apple-darwin.tar.gz)
- `Linux`: intel: [fluentci-engine_v0.4.9_x86_64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.9/fluentci-engine_v0.4.9_x86_64-unknown-linux-gnu.tar.gz) arm64: [fluentci-engine_v0.4.9_aarch64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.9/fluentci-engine_v0.4.9_aarch64-unknown-linux-gnu.tar.gz)
- `Mac`: arm64: [fluentci-engine_v0.4.10_aarch64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.10/fluentci-engine_v0.4.10_aarch64-apple-darwin.tar.gz) intel: [fluentci-engine_v0.4.10_x86_64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.10/fluentci-engine_v0.4.10_x86_64-apple-darwin.tar.gz)
- `Linux`: intel: [fluentci-engine_v0.4.10_x86_64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.10/fluentci-engine_v0.4.10_x86_64-unknown-linux-gnu.tar.gz) arm64: [fluentci-engine_v0.4.10_aarch64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.10/fluentci-engine_v0.4.10_aarch64-unknown-linux-gnu.tar.gz)

## 📚 Documentation

Expand Down
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MPL-2.0"
name = "fluentci-engine"
readme = "../../README.md"
repository = "https://github.com/fluentci-io/fluentci-engine"
version = "0.4.9"
version = "0.4.10"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
9 changes: 7 additions & 2 deletions crates/cli/src/cmd/call.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
use std::{
env::consts::{ARCH, OS},
env::{
self,
consts::{ARCH, OS},
},
fs,
process::{Command, Stdio},
sync::{mpsc, Arc, Mutex},
Expand Down Expand Up @@ -143,7 +146,9 @@ pub fn call(module: &str, command: &str) -> Result<(), Error> {
let args = command.split_whitespace().skip(1).collect::<Vec<&str>>();
let args = args.join(" ");
match plugin.call::<&str, &str>(func, &args) {
Ok(_) => {}
Ok(res) => {
println!("{}", res);
}
Err(err) => {
println!("{}", err);
std::process::exit(1);
Expand Down

0 comments on commit 1c3b6ff

Please sign in to comment.