From 9f62ce3d3ec7c61eb989fb277f04c756982336df Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 10 Feb 2022 18:13:58 -0500 Subject: [PATCH] things --- Cargo.toml | 7 ++++++- start-server.sh | 7 +------ www/index.html | 9 +-------- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aaea901..1621111 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,10 +6,15 @@ edition = "2021" [lib] crate-type=["cdylib"] +[profile.release] +debug = 0 +codegen-units = 1 +opt-level = 3 + [dependencies] wasm-bindgen = "0.2.79" plotters = "0.3.1" plotters-canvas = "0.3.0" wee_alloc = "0.4.5" web-sys = { version = "0.3.56", features = ["HtmlCanvasElement"] } -meval = "0.2" \ No newline at end of file +meval = { git = "https://github.com/rekka/meval-rs.git" } \ No newline at end of file diff --git a/start-server.sh b/start-server.sh index d8ba0e6..f60bd47 100755 --- a/start-server.sh +++ b/start-server.sh @@ -11,12 +11,7 @@ then cargo install wasm-pack fi -if [ "${CONFIG}" = "release" ] -then - wasm-pack build -else - wasm-pack build --release -fi +wasm-pack build --release cd www npm install diff --git a/www/index.html b/www/index.html index 4708a41..f80954f 100644 --- a/www/index.html +++ b/www/index.html @@ -35,11 +35,4 @@ -

Supported Expressions:

- -