Simon Gardling f4a26ff8fe Os
Os vs Oz, size wise, only is about 100kb difference. but Oz disables some optimizations. Enabling Os instead of Oz brings the binary size up from 876527 bytes to 972775 bytes (a 10.9% increase).

Note: I am referring to wasm binary size as that's the main focus of this project
2022-03-01 09:15:37 -05:00

37 lines
958 B
TOML

[package]
name = "integral_site"
version = "0.1.0"
edition = "2021"
[lib]
crate-type=["cdylib"]
[profile.release]
debug = false
codegen-units = 1
opt-level = "s" #optimize for size
lto = true
strip = true
[profile.dev]
debug = true
codegen-units = 1
opt-level = "s" #optimize for size
lto = true
[dependencies]
meval = { git = "https://github.com/Titaniumtown/meval-rs.git" }
eframe = { git = "https://github.com/Titaniumtown/egui", default-features = false, features = ["egui_glow"] }
git-version = "0.3.5"
include-flate = { git = "https://github.com/Titaniumtown/include-flate.git" }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
instant = { version = "0.1.12" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
instant = { version = "0.1.12", features = ["wasm-bindgen"] }
console_error_panic_hook = "0.1.7"
wee_alloc = "0.4.5"
wasm-bindgen = { version = "0.2.79", default-features = false, features = ["std"] }
tracing-wasm = "0.2.1"