web: migrate from lib->bin

This commit is contained in:
Bill Thiede 2024-07-06 18:18:28 -07:00
parent 5fc272054c
commit b4d1528612
2 changed files with 1 additions and 6 deletions

View File

@ -9,9 +9,6 @@ license = "MIT"
readme = "./README.md"
edition = "2018"
[lib]
crate-type = ["cdylib"]
[dev-dependencies]
wasm-bindgen-test = "0.3.33"

View File

@ -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)]