About

This crate only export a macro named #[wasmedge_bindgen] that used for retouching exporting functions to make it support more data types.

Data Types

Parameters

You can set the parameters to any one of the following types:

Return Values

You can set the return values to any one of the following types:

The only way to tell the host that the error has occurred is to return Err<String> of Result.

Examples

```rust

[wasmedge_bindgen]

pub fn create_line(p1: String, p2: String, desc: String) -> String

[wasmedge_bindgen]

pub fn lowestcommonmultiple(a: i32, b: i32) -> i32

[wasmedge_bindgen]

pub fn sha3_digest(v: Vec) -> Vec

[wasmedge_bindgen]

pub fn info(v: Vec) -> Result<(u8, String), String> ```