Crates.io | ws-sdk |
lib.rs | ws-sdk |
version | 0.1.17 |
source | src |
created_at | 2023-02-15 00:53:04.236451 |
updated_at | 2023-07-03 23:00:51.677571 |
description | A Rust SDK for writing Webassembly for W3bstream. |
homepage | https://w3bstream.com/ |
repository | https://github.com/machinefi/w3bstream-wasm-rust-sdk |
max_upload_size | |
id | 785427 |
size | 42,326 |
A Rust SDK for writing Webassembly for W3bstream.
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.