waterfall-glow-rs/Cargo.toml

57 lines
1.5 KiB
TOML

[package]
name = "waterfall-glow-rs"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# Common dependencies
[dependencies]
anyhow = "1.0.98"
cpal = "0.15.3"
egui = "0.31"
egui_plot = "0.32"
log = "0.4.27"
realfft = "3.4.0"
# eframe features for non android targets
[target.'cfg(not(target_os = "android"))'.dependencies.eframe]
version = "0.31"
default-features = false
features = ["accesskit", "default_fonts", "glow", "wayland", "x11"]
# eframe features for android targets
[target.'cfg(target_os = "android")'.dependencies.eframe]
version = "0.31"
default-features = false
features = ["accesskit", "default_fonts", "glow", "android-native-activity"]
# android only dependencies
[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.15.0"
#android-activity = { version = "0.5", features = ["native-activity"] }
winit = { version = "0.30.11", features = ["android-native-activity"] }
# native only dependencies
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "android")))'.dependencies]
env_logger = "0.11"
# web only dependencies
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"
web-sys = "0.3.70" # to access the DOM (to hide the loading text)
[profile.release]
opt-level = 2
# Optimize all dependencies even in debug builds:
[profile.dev.package."*"]
opt-level = 2
[lib]
crate-type = ["cdylib"]
[[bin]]
name = "waterfall"
path = "src/main.rs"