Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Latest commit

 

History

History
34 lines (26 loc) · 1.43 KB

README.md

File metadata and controls

34 lines (26 loc) · 1.43 KB

Workflow Status Average time to resolve an issue Percentage of issues still open Maintenance

enarx-wasmldr

The Enarx Keep runtime binary.

It can be used to run a Wasm file with given command-line arguments and environment variables.

Example invocation

$ wat2wasm fixtures/return_1.wat
$ RUST_LOG=enarx_wasmldr=info RUST_BACKTRACE=1 cargo run return_1.wasm
    Finished dev [unoptimized + debuginfo] target(s) in 0.07s
     Running `target/x86_64-unknown-linux-musl/debug/enarx-wasmldr target/x86_64-unknown-linux-musl/debug/build/enarx-wasmldr-c374d181f6abdda0/out/fixtures/return_1.wasm`
[2020-09-10T17:56:18Z INFO  enarx_wasmldr] got result: [
        I32(
            1,
        ),
    ]

On Unix platforms, the command can also read the workload from the file descriptor (3):

$ RUST_LOG=enarx_wasmldr=info RUST_BACKTRACE=1 cargo run 3< return_1.wasm

License: Apache-2.0