-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
145 lines (125 loc) · 5.06 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[package]
name = "snek"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
path = "src/lib.rs"
name = "snek"
[[bin]]
path = "src/main.rs"
name = "snek"
[dependencies]
async-channel = "1.9.0"
bincode = "1.3.3"
cfg-if = "1.0.0"
flate3 = "0.1.21"
flume = "0.11.0"
futures = "0.3.28"
# bevy-inspector-egui = "0.19.0"
rand = "0.8.5"
seeded-random = "0.6.0"
serde = { version = "1.0.188", features = ["derive"] }
wasm-bindgen-futures = "0.4.37"
web-sys = { version = "0.3.64", features = ["Element", "Document", "Window"] }
xwebtransport = { git = "https://github.com/MOZGIII/xwebtransport" }
xwebtransport-core = { git = "https://github.com/MOZGIII/xwebtransport" }
[dependencies.bevy_rapier2d]
version = "0.22.0"
# features = ["debug-render-2d"]
[dependencies.bevy]
version = "0.11"
default-features = false
features = [
# These are the default features:
# (re-enable whichever you like)
# Bevy functionality:
"multi-threaded", # Run with multithreading
"bevy_asset", # Assets management
"bevy_audio", # Builtin audio
# "bevy_gilrs", # Gamepad input support
"bevy_scene", # Scenes management
"bevy_winit", # Window management
"bevy_render", # Rendering framework core
"bevy_core_pipeline", # Common rendering abstractions
# "bevy_gizmos", # Support drawing debug lines and shapes
"bevy_sprite", # 2D (sprites) rendering
# "bevy_pbr", # 3D (physically-based) rendering
# "bevy_gltf", # GLTF 3D assets format support
"bevy_text", # Text/font rendering
"bevy_ui", # UI toolkit
"animation", # Animation support
"tonemapping_luts", # Support different camera Tonemapping modes (embeds extra data)
# "filesystem_watcher", # Asset hot-reloading
"default_font", # Embed a minimal default font for text/UI
# File formats:
"png", # PNG image format for simple 2D images
# "hdr", # HDR images
"ktx2", # Preferred format for GPU textures
"zstd", # ZSTD compression support in KTX2 files
"vorbis", # Audio: OGG Vorbis
# Platform-specific:
"x11", # Linux: Support X11 windowing system
"android_shared_stdcxx", # Android: use shared C++ library
"webgl2", # Web: use WebGL2 instead of WebGPU
# These are other features that may be of interest:
# (add any of these that you need)
# Bevy functionality:
# "subpixel_glyph_atlas", # Subpixel antialiasing for text/fonts
"serialize", # Support for `serde` Serialize/Deserialize
# File formats:
# "dds", # Alternative DirectX format for GPU textures, instead of KTX2
"jpeg", # JPEG lossy format for 2D photos
# "webp", # WebP image format
# "bmp", # Uncompressed BMP image format
# "tga", # Truevision Targa image format
# "exr", # OpenEXR advanced image format
# "pnm", # PNM (pam, pbm, pgm, ppm) image format
# "basis-universal", # Basis Universal GPU texture compression format
# "zlib", # zlib compression support in KTX2 files
# "flac", # Audio: FLAC lossless format
# "mp3", # Audio: MP3 format (not recommended)
# "wav", # Audio: Uncompressed WAV
# "symphonia-all", # All Audio formats supported by the Symphonia library
# "shader_format_glsl", # GLSL shader support
# "shader_format_spirv", # SPIR-V shader support
# Platform-specific:
# "wayland", # (Linux) Support Wayland windowing system
# "accesskit_unix", # (Unix-like) AccessKit integration for UI Accessibility
# "bevy_dynamic_plugin", # (Desktop) support for loading of `DynamicPlugin`s
# Development/Debug features:
# "dynamic_linking", # Dynamic linking for faster compile-times
# "trace", # Enable tracing for performance measurement
# "detailed_trace", # Make traces more verbose
# "trace_tracy", # Tracing using `tracy`
# "trace_tracy_memory", # + memory profiling
# "trace_chrome", # Tracing using the Chrome format
# "wgpu_trace", # WGPU/rendering tracing
]
# Enable a small amount of optimization in debug mode
# [profile.dev]
# opt-level = 1
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
wtransport = { version = "0.1.8", features = ["dangerous-configuration"]}
bevy-tokio-tasks = "0.11.0"
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
[profile.dev.package."*"]
opt-level = 3
[profile.release]
opt-level = 'z'
lto = 'thin'
codegen-units = 1
strip = true
[profile.android-release]
inherits = "release"
opt-level = 3
[[package.metadata.android.uses_permission]]
name = "android.permission.INTERNET"
[package.metadata.android]
# package = "org.bevyengine.example"
# apk_name = "bevyexample"
assets = "assets"
# resources = "../../assets/android-res"
# This strips debug symbols from the shared libraries, drastically reducing APK size. If you need them, remove the option.
strip = "strip"
# build_targets = ["aarch64-linux-android", "armv7-linux-androideabi"]