ws-sdk

Crates.iows-sdk
lib.rsws-sdk
version0.1.17
sourcesrc
created_at2023-02-15 00:53:04.236451
updated_at2023-07-03 23:00:51.677571
descriptionA Rust SDK for writing Webassembly for W3bstream.
homepagehttps://w3bstream.com/
repositoryhttps://github.com/machinefi/w3bstream-wasm-rust-sdk
max_upload_size
id785427
size42,326
Haaai (Liuhaai)

documentation

README

w3bstream-wasm-rust-sdk

A Rust SDK for writing Webassembly for W3bstream.

Crates.io Apache licensed

Website | Guides | API Docs

Example

Say “Hello World!” to the w3bstream with rust-sdk.

Make sure you added the ws-sdk crate on Cargo.toml:

cargo add ws-sdk

Then, on your lib.rs:

use ws_sdk::log::log_info;

#[no_mangle]
pub extern "C" fn start(_: i32) -> i32 {
    log_info("hello world!");
    return 0;
}

More examples can be found here.

Commit count: 19

cargo fmt