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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?