diff --git a/web/Cargo.toml b/web/Cargo.toml index 347aa55..6442491 100644 --- a/web/Cargo.toml +++ b/web/Cargo.toml @@ -9,9 +9,6 @@ license = "MIT" readme = "./README.md" edition = "2018" -[lib] -crate-type = ["cdylib"] - [dev-dependencies] wasm-bindgen-test = "0.3.33" diff --git a/web/src/lib.rs b/web/src/main.rs similarity index 88% rename from web/src/lib.rs rename to web/src/main.rs index 24f8a4c..3b86268 100644 --- a/web/src/lib.rs +++ b/web/src/main.rs @@ -12,9 +12,7 @@ mod graphql; mod state; mod view; -// (This function is invoked by `init` function in `index.html`.) -#[wasm_bindgen(start)] -pub fn start() { +fn main() { // This provides better error messages in debug mode. // It's disabled in release mode so it doesn't bloat up the file size. #[cfg(debug_assertions)]