[package] name = "gcalc" version = "0.4.0" edition = "2018" license = "MIT OR Apache-2.0" keywords = ["cli"] categories = ["command-line-utilities"] description = "Game probability calculator" homepage = "https://github.com/simhyeon/gcalc" repository = "https://github.com/simhyeon/gcalc" readme = "README.md" [[bin]] name = "gcalc" path = "src/bin.rs" [lib] name = "gcalc" path = "src/lib.rs" [features] binary = ["clap", "option", "tabled", "plotters"] option = ["dep:serde_json"] wasm = ["dep:wasm-bindgen", "dep:wee_alloc"] [dependencies] clap = { version = "3.2.8", default-features = false, features = ["std"], optional=true} serde = { version = "1.0.126", features = ["derive"]} serde_json = { version = "1.0.59", optional = true } tabled = { version = "0.3.0", optional = true } wasm-bindgen = { version = "0.2.74", optional = true} wee_alloc = { version = "0.4.5", optional = true } plotters = { version = "0.3.1", optional = true, default-features = false, features = ["svg_backend", "all_series"]} cindex = { version = "0.5.1"} # Wasm-pack doesn't support custom profile at the moment # Use it manually or edit whenever you want to build wasm file [profile.wasm] inherits = "release" lto = true opt-level = "s"