46 lines
1.2 KiB
TOML
46 lines
1.2 KiB
TOML
[package]
|
|
name = "thecockpit"
|
|
version = "0.1.0"
|
|
authors = ["Isaac Mills <rooster0055@protonmail.com>"]
|
|
edition = "2018"
|
|
|
|
[profile.dev.package."*"]
|
|
opt-level = 3
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[features]
|
|
default = ["console_error_panic_hook"]
|
|
crossterm = ["ratatui/crossterm"]
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
ratatui = { version = "0.29.0", default-features = false }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
ratatui = { version = "0.29.0", default-features = false }
|
|
ratzilla = "0.1.0"
|
|
wasm-bindgen = "0.2.84"
|
|
|
|
# The `console_error_panic_hook` crate provides better debugging of panics by
|
|
# logging them with `console.error`. This is great for development, but requires
|
|
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
|
|
# code size when deploying.
|
|
console_error_panic_hook = { version = "0.1.7", optional = true }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
|
wasm-bindgen-test = "0.3.34"
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
wasm-opt = ['--enable-bulk-memory-opt', '--enable-mutable-globals', '--enable-nontrapping-float-to-int']
|
|
# wasm-opt = false
|
|
|
|
[profile.dev]
|
|
panic = "abort"
|
|
|
|
[profile.release]
|
|
opt-level = 2
|
|
lto = true
|
|
codegen-units = 1
|
|
strip = true
|
|
panic = "abort"
|