[package]
edition = "2024"
name = "mathypad"
version = "0.1.17"
authors = ["Pato Lankenau <rust@p.lankenau.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "mathypad"
description = "A smart TUI calculator that understands units and makes complex calculations simple."
homepage = "https://mathypad.app"
readme = "README.md"
keywords = [
"tui",
"cli",
"calculator",
"units",
"soulver",
]
license = "MIT"
repository = "https://github.com/pato/mathypad"
resolver = "2"
[features]
default = []
gui = [
"dep:eframe",
"dep:egui",
"dep:log",
"dep:env_logger",
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
"dep:web-sys",
"dep:console_error_panic_hook",
"dep:tracing-wasm",
]
[lib]
name = "mathypad"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[bin]]
name = "mathypad"
path = "src/bin/main.rs"
[[bin]]
name = "mathypad-gui"
path = "src/bin/gui.rs"
required-features = ["gui"]
[dependencies.clap]
version = "4.5"
features = [
"derive",
"cargo",
]
[dependencies.dirs]
version = "6.0"
[dependencies.eframe]
version = "0.29"
optional = true
[dependencies.egui]
version = "0.29"
optional = true
[dependencies.log]
version = "0.4"
optional = true
[dependencies.mathypad-core]
version = "0.1.17"
[dev-dependencies.insta]
version = "1.43.1"
[dev-dependencies.tempfile]
version = "3.20"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.arboard]
version = "3.5"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.crossterm]
version = "0.29"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.env_logger]
version = "0.11"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ratatui]
version = "0.29"
[target.'cfg(target_arch = "wasm32")'.dependencies.console_error_panic_hook]
version = "0.1"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.tracing-wasm]
version = "0.2"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
"Window",
"Document",
"Element",
"HtmlCanvasElement",
"Location",
"console",
]
optional = true
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
strip = true
[profile.release.package.mathypad-web-poc]
opt-level = "s"