add web-app stub
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
use std::collections::hash_map;
|
||||
use std::io;
|
||||
use std::io::Write;
|
||||
use std::path::Path;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
pub mod game;
|
||||
pub mod pattern;
|
||||
pub mod solver;
|
||||
#[cfg(feature = "wasm-bindgen")]
|
||||
pub mod wasm;
|
||||
pub mod word_list;
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen]
|
||||
extern "C" {
|
||||
fn alert(s: &str);
|
||||
}
|
||||
#[wasm_bindgen]
|
||||
pub fn greet() {
|
||||
alert("Hello, wasm-on-web!");
|
||||
}
|
||||
Reference in New Issue
Block a user