rust-webplatform

Rust library for Emscripten-compiled JS apps.

  • 所有者: rust-webplatform/rust-webplatform
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

rust-webplatform

A Rust library for use with emscripten to access the DOM.

NOTE: This project is no longer actively developed. See stdweb for an actively-developed project for using Rust in asmjs / wasm.

Read the documentation, read brson's post on how
Rust works with emscripten
,
or see an example app with rust-todomvc.

extern crate webplatform;

fn main() {
    let document = webplatform::init();
    let body = document.element_query("body").unwrap();
    body.html_set("<h1>HELLO FROM RUST</h1> <button>CLICK ME</button>");
    let button = document.element_query("button").unwrap();
    button.on("click",, _, webplatform::alert("WITNESS ME"));
}

Used with cargo build --target=asmjs-unknown-emscripten.

License

MIT or Apache-2.0, at your option.

主要指标

概览
名称与所有者rust-webplatform/rust-webplatform
主编程语言JavaScript
编程语言JavaScript (语言数: 4)
平台
许可证
所有者活动
创建于2015-09-12 01:00:54
推送于2017-10-18 18:25:44
最后一次提交2017-10-18 19:25:43
发布数0
用户参与
星数331
关注者数18
派生数31
提交数49
已启用问题?
问题数16
打开的问题数11
拉请求数6
打开的拉请求数2
关闭的拉请求数3
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?