[package] name = "yachtpit" version = "0.1.0" publish = false authors = ["seemueller-io "] edition = "2021" exclude = ["dist", "build", "assets", "credits"] [profile.dev.package."*"] opt-level = 3 [profile.dev] opt-level = 1 # This is used by trunk as it doesn't support custom profiles: https://github.com/trunk-rs/trunk/issues/605 # xbuild also uses this profile for building android AABs because I couldn't find a configuration for it [profile.release] opt-level = "s" lto = 'thin' codegen-units = 1 strip = true # Profile for distribution [profile.dist] inherits = "release" opt-level = 3 lto = true codegen-units = 1 strip = true [features] dev = [ "bevy/dynamic_linking", ] # All of Bevy's default features exept for the audio related ones (bevy_audio, vorbis), since they clash with bevy_kira_audio # and android_shared_stdcxx/android-game-activity, since those are covered in `mobile` [dependencies] bevy = { version = "0.16", default-features = false, features = [ "bevy_asset", "bevy_color", "bevy_core_pipeline", "bevy_log", "bevy_render", "bevy_sprite", "bevy_state", "bevy_text", "bevy_ui", "bevy_window", "bevy_winit", "default_font", "multi_threaded", "png", "webgl2", ] } bevy_kira_audio = { version = "0.23.0", features = ["android_shared_stdcxx"] } bevy_asset_loader = { version = "0.23.0" } rand = { version = "0.8.3" } webbrowser = { version = "1", features = ["hardened"] } systems = { path = "../systems" } components = { path = "../components" } wasm-bindgen = "0.2" web-sys = { version = "0.3.53", features = ["Document", "Element", "HtmlElement", "Window"] } # Platform-specific tokio features [target.'cfg(not(target_arch = "wasm32"))'.dependencies] tokio = { version = "1.0", features = ["rt", "rt-multi-thread"] } image = "0.25" winit = "0.30" bevy_webview_wry = { version = "0.4", default-features = false, features = ["api"] } [target.'cfg(target_arch = "wasm32")'.dependencies] tokio = { version = "1.0", features = ["rt"] } # keep the following in sync with Bevy's dependencies winit = { version = "0.30", default-features = false } image = { version = "0.25", default-features = false } ## This greatly improves WGPU's performance due to its heavy use of trace! calls log = { version = "0.4", features = ["max_level_debug", "release_max_level_warn"] } [build-dependencies] embed-resource = "1"