Skip to content

hajifkd/emval-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emval-rs

A rust wrapper for emscripten val.h

Using val.h, the Javascript code can be called from rust.

Usage

extern crate emval;
use emval::*;

let window = JSObj::global("window");
let name: String = window.call_prop("prompt", args!("What is your name?"));
window.call_prop::<()>("alert", args!(format!("Hi, {} from rust!", name)));

build

$ EMMAKEN_CFLAGS=--bind cargo build --target=asmjs-unknown-emscripten

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published