Change crate type from lib
This commit is contained in:
@ -1,6 +1,8 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["backend", "common", "frontend"]
|
members = ["backend", "common", "frontend"]
|
||||||
|
|
||||||
|
resolver = "2"
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
# Issue with const-generics
|
# Issue with const-generics
|
||||||
incremental = false
|
incremental = false
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
##################
|
##################
|
||||||
### BASE STAGE ###
|
### BASE STAGE ###
|
||||||
##################
|
##################
|
||||||
FROM rust:1.62.1 as base
|
FROM rust:1.72.1 as base
|
||||||
|
|
||||||
# Install build dependencies
|
# Install build dependencies
|
||||||
RUN cargo install --locked cargo-make trunk strip_cargo_version
|
RUN cargo install --locked cargo-make trunk strip_cargo_version
|
||||||
|
|||||||
@ -4,9 +4,6 @@ version = "0.2.0"
|
|||||||
authors = ["Joakim Hulthe <joakim@hulthe.net"]
|
authors = ["Joakim Hulthe <joakim@hulthe.net"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[lib]
|
|
||||||
crate-type = ["cdylib"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
seed = "0.9.1"
|
seed = "0.9.1"
|
||||||
wasm-bindgen = "=0.2.80" # 0.2.81 has a breaking change
|
wasm-bindgen = "=0.2.80" # 0.2.81 has a breaking change
|
||||||
|
|||||||
@ -3,10 +3,8 @@ mod components;
|
|||||||
mod css;
|
mod css;
|
||||||
mod page;
|
mod page;
|
||||||
|
|
||||||
use seed::prelude::wasm_bindgen;
|
|
||||||
use seed::App;
|
use seed::App;
|
||||||
|
|
||||||
#[wasm_bindgen(start)]
|
pub fn main() {
|
||||||
pub fn start() {
|
|
||||||
App::start("app", app::init, app::update, app::view);
|
App::start("app", app::init, app::update, app::view);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user