grower

Crates.iogrower
lib.rsgrower
version0.0.7
created_at2025-08-09 15:15:10.455697+00
updated_at2025-09-02 17:19:12.014217+00
descriptionA Library for development language runtimes that run on Web Browsers.
homepage
repository
max_upload_size
id1788021
size8,191
Itsuru Nomaki (itsu-dev)

documentation

https://github.com/Tsukuba-Programming-Lab/grower

README

Grower

Grower: General Runtime On WEb browserRs [Now Development]

A Library for development language runtimes that run on Web Browsers.

Install

Now available on crates.io.

cargo add grower

Features

core::jsni

An implementation of JSNI (JavaScript Native Interface). JSNI is a FFI for a linear-memory between WebAssembly Runtimes and JavaScript Runtimes. You may use this API to call JavaScript functions from Rust.

For example:

use grower::core::jsni::*;

let ni = JavaScriptNativeInterface::new();

let return_values: Vec<JSNIValue> = ni.call("hogeFunc".to_string(), vec![
    JSNIValue::from(2 as i8),
    JSNIValue::from(1 as i16),
    JSNIValue::from(1 as i32),
    JSNIValue::from(1 as i64),
    JSNIValue::from(8 as u8),
    JSNIValue::from(16 as u16),
    JSNIValue::from(32 as u32),
    JSNIValue::from(64 as u64),
    JSNIValue::from(0.5 as f32),
    JSNIValue::from(6.4646464 as f64),
    JSNIValue::from("hoge".to_string()),
    JSNIValue::from(vec![1, 2, 3, 4, 5, 6, 7, 8]),
]).await;
Commit count: 0

cargo fmt