Logo
Explore Help
Sign In
fluencelabs/wasm-bindgen
1
0
Fork 0
You've already forked wasm-bindgen
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-06-06 17:41:29 +00:00
Code Issues Projects Releases Wiki Activity
wasm-bindgen/examples/hello_world/src/lib.rs

12 lines
172 B
Rust
Raw Normal View History

Rewrite the README using Webpack Right now Webpack probably has the most mature support for loading wasm modules, so let's show off how to do that! Additionally this commits hello world as an example to the repository.
2018-03-02 20:11:30 -08:00
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
rustfmt all the things
2018-06-27 22:42:34 -07:00
extern "C" {
Rewrite the README using Webpack Right now Webpack probably has the most mature support for loading wasm modules, so let's show off how to do that! Additionally this commits hello world as an example to the repository.
2018-03-02 20:11:30 -08:00
fn alert(s: &str);
}
#[wasm_bindgen]
Add an example of console.log Also clean up some other exampels
2018-03-09 10:25:19 -08:00
pub fn greet(name: &str) {
Rewrite the README using Webpack Right now Webpack probably has the most mature support for loading wasm modules, so let's show off how to do that! Additionally this commits hello world as an example to the repository.
2018-03-02 20:11:30 -08:00
alert(&format!("Hello, {}!", name));
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 58ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API