Change crate type from lib
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
[workspace]
|
||||
members = ["backend", "common", "frontend"]
|
||||
|
||||
resolver = "2"
|
||||
|
||||
[profile.dev]
|
||||
# Issue with const-generics
|
||||
incremental = false
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
##################
|
||||
### BASE STAGE ###
|
||||
##################
|
||||
FROM rust:1.62.1 as base
|
||||
FROM rust:1.72.1 as base
|
||||
|
||||
# Install build dependencies
|
||||
RUN cargo install --locked cargo-make trunk strip_cargo_version
|
||||
|
||||
@ -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