52 lines
1.6 KiB
TOML
52 lines
1.6 KiB
TOML
[package]
|
|
name = "mandelbrot"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[features]
|
|
default = ["gui"]
|
|
# Windowed egui app. Without it only `--headless` rendering is built.
|
|
gui = ["dep:eframe", "dep:egui"]
|
|
|
|
[dependencies]
|
|
bytemuck = { version = "1.25.2", features = ["derive"] }
|
|
dashu-float = "0.6.0"
|
|
eframe = { version = "0.36.2", default-features = false, features = ["wgpu", "default_fonts", "x11", "wayland", "accesskit"], optional = true }
|
|
egui = { version = "0.36.2", optional = true }
|
|
ecolor = { version = "0.36.2", features = ["bytemuck"] }
|
|
wgpu = "30.0.1"
|
|
glam = "0.33.8"
|
|
log = "0.4.34"
|
|
png = "0.18.1"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
env_logger = "0.11.11"
|
|
clap = { version = "4.5.51", features = ["derive"] }
|
|
pollster = "1.0.1"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
futures-channel = { version = "0.3.34", default-features = false, features = ["alloc", "std"] }
|
|
console_error_panic_hook = "0.1.7"
|
|
console_log = "1.1.0"
|
|
js-sys = "0.3.105"
|
|
wasm-bindgen = "0.2.128"
|
|
wasm-bindgen-futures = "0.4.78"
|
|
web-sys = { version = "0.3.105", features = ["Window", "Location", "Url", "UrlSearchParams", "Document", "HtmlCanvasElement", "Blob", "BlobPropertyBag", "HtmlAnchorElement", "Element", "Navigator", "History"] }
|
|
|
|
# Release: optimize hard (fractal math is hot).
|
|
[profile.release]
|
|
opt-level = 3
|
|
# codegen-units = 1
|
|
debug = true
|
|
|
|
# Dev: keep our own crate debuggable, but optimize dependencies (dashu, wgpu,
|
|
# egui) so the explorer is actually interactive during development.
|
|
[profile.dev]
|
|
opt-level = 1
|
|
|
|
[profile.dev.package."*"]
|
|
opt-level = 3
|
|
|
|
[dev-dependencies]
|
|
naga = { version = "30", features = ["wgsl-in", "spv-out"] }
|