Skip to content
Rust graphical application starter
Rust JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
bin
examples
pkg
src
.gitignore
Cargo.toml
LICENSE
README.md
wasm-pack.log

README.md

application-rs

Rust graphical application starter, uses stdweb for wasm32 & glutin for the rest

fn main() {
    let config = AppConfig::new("Title Sample",(600,400));
    let mut app = App::new(config);
    app.run(||{

    });
}

Manual FFI without stdweb

Disable default-features (stdw) add following after wasm instance is created

var callback = function(t){
    results.instance.exports.update(t);
    requestAnimationFrame(callback);
};
window.requestAnimationFrame(callback);
You can’t perform that action at this time.