web: migrate from lib->bin
This commit is contained in:
parent
5fc272054c
commit
b4d1528612
@ -9,9 +9,6 @@ license = "MIT"
|
|||||||
readme = "./README.md"
|
readme = "./README.md"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[lib]
|
|
||||||
crate-type = ["cdylib"]
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
wasm-bindgen-test = "0.3.33"
|
wasm-bindgen-test = "0.3.33"
|
||||||
|
|
||||||
|
|||||||
@ -12,9 +12,7 @@ mod graphql;
|
|||||||
mod state;
|
mod state;
|
||||||
mod view;
|
mod view;
|
||||||
|
|
||||||
// (This function is invoked by `init` function in `index.html`.)
|
fn main() {
|
||||||
#[wasm_bindgen(start)]
|
|
||||||
pub fn start() {
|
|
||||||
// This provides better error messages in debug mode.
|
// This provides better error messages in debug mode.
|
||||||
// It's disabled in release mode so it doesn't bloat up the file size.
|
// It's disabled in release mode so it doesn't bloat up the file size.
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
Loading…
x
Reference in New Issue
Block a user