[package] name = "shu" version = "0.5.0" edition = "2021" license = "MIT OR Apache-2.0" description = "High-dimensional metabolic maps." categories = ["visualization", "science"] repository = "https://github.com/biosustain/shu" readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] bevy = {version="0.9.1", features = ["bevy_render", "bevy_core_pipeline", "bevy_asset", "bevy_sprite", "render", "bevy_winit", "png", "x11"], default-features=false } bevy_egui = "0.17.1" bevy_pancam = { version = "0.7.0", features = ["bevy_egui"] } bevy_prototype_lyon = "0.7.1" colorgrad = "0.6.2" itertools = "0.10.5" fastrand = "1.8.0" serde = "1.0.147" serde_json = "1.0.88" # dependencies exclusive for wasm32 [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen = { version = "0.2.84", features = ["serde", "serde-serialize"] } console_error_panic_hook = "0.1" wasm-bindgen-futures = "0.4.33" async-std = "1.12.0" [target.'cfg(target_arch = "wasm32")'.dependencies.web-sys] version = "0.3.4" features = [ 'CanvasRenderingContext2d', 'CssStyleDeclaration', 'Document', 'Element', 'EventTarget', 'File', 'FileList', 'HtmlLabelElement', 'HtmlInputElement', 'HtmlElement', 'MouseEvent', 'Node', 'Window', 'console', ] # Enable a small amount of optimization in debug mode [profile.dev] opt-level = 1 # Enable high optimizations for dependencies (incl. Bevy), but not for our code: [profile.dev.package."*"] opt-level = 3 [profile.wasm-release] # Use release profile as default values inherits = "release" # Optimize with size in mind, also try "s", sometimes it is better. # This doesn't increase compilation times compared to -O3, great improvements opt-level = "z" # Do a second optimization pass removing duplicate or unused code from dependencies. # Slows compile times, marginal improvements lto = "fat" # When building crates, optimize larger chunks at a time # Slows compile times, marginal improvements codegen-units = 1