Change crate type from lib
This commit is contained in:
@ -4,9 +4,6 @@ version = "0.2.0"
|
||||
authors = ["Joakim Hulthe <joakim@hulthe.net"]
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
seed = "0.9.1"
|
||||
wasm-bindgen = "=0.2.80" # 0.2.81 has a breaking change
|
||||
|
||||
@ -3,10 +3,8 @@ mod components;
|
||||
mod css;
|
||||
mod page;
|
||||
|
||||
use seed::prelude::wasm_bindgen;
|
||||
use seed::App;
|
||||
|
||||
#[wasm_bindgen(start)]
|
||||
pub fn start() {
|
||||
pub fn main() {
|
||||
App::start("app", app::init, app::update, app::view);
|
||||
}
|
||||
Reference in New Issue
Block a user