chore(deps): Upgrade Bevy dependency from 0.16 to 0.17.3#10
Draft
yebei199 wants to merge 9 commits intoNightsWatchGames:mainfrom
Draft
chore(deps): Upgrade Bevy dependency from 0.16 to 0.17.3#10yebei199 wants to merge 9 commits intoNightsWatchGames:mainfrom
yebei199 wants to merge 9 commits intoNightsWatchGames:mainfrom
Conversation
- 升级 bevy 依赖从 0.16 到 0.17.3 - 移除 TransformSystem 引用,使用新的变换传播机制 - 调整系统执行顺序,移除对 TransformPropagate 的显式依赖
- 为 WASM 目标配置 `getrandom` 后端支持 - 添加 `wasm-bindgen-futures` 依赖以支持异步操作 - 启用 Bevy 的 WebGPU 和相关渲染功能 - 创建 HTML 入口文件用于运行 WASM 应用 - 添加 Trunk 构建配置指向 index.html - 新增 Justfile 脚本简化开发和构建流程
- 将复杂的查询类型定义为别名 MenuButtonQuery,提高代码可读性 - 简化按钮点击处理逻辑,使用 if 匹配替代嵌套 match - 更换 EventWriter 为 MessageWriter 以适应新的事件处理机制 - 移除不必要的默认匹配分支,精简代码结构 - 更新 HTML 页面样式,移除多余容器,设置全屏画布显示 - 修改 WASM 运行器配置从 wasm-server-runner 为 trunk - 统一 Rust 标志配置格式并保留 getrandom 后端设置 - 修正计时器完成状态检查方法名 finished 为 is_finished
- 在Rust代码中配置主窗口标题和canvas元素 - 设置窗口适应父容器尺寸 - 修改HTML样式使canvas全屏显示 - 更新body和html标签的宽高为100% - 移除viewport的vw/vh单位,改用百分比
- 在 Cargo.toml 中启用 bevy_audio 功能 - 配置 AssetPlugin 禁用元数据检查 - 更新 justfile 使用更详细的构建命令
- 添加 dist 目录到 .gitignore 忽略列表 - 修改 trunk serve 命令绑定地址为 0.0.0.0 并指定端口 3003 - 优化开发服务器启动配置
- 添加 dist_release 目录到 .gitignore 忽略列表 - 新增 trunk_release 命令用于生产环境构建 - 新增 miniserve_release 命令用于发布版本的本地服务启动 - 重命名 broswer 命令为 trunk_dev 并保留开发环境功能
- 新增 FPS 插件用于监控和显示帧率 - 在屏幕右上角渲染实时 FPS 文本 - 使用 Bevy 的诊断系统获取平滑帧率数据 - 注册 FPS 插件到主应用中 - 添加 FPS 相关模块和组件定义 - 更新 README 文档中的开发命令说明
- 在 Cargo.toml 中新增 [profile.release] 配置节 - 设置 opt-level = "z" 以实现极致体积优化 - 启用 LTO (链接时间优化) 以减少最终二进制大小 - 将 codegen-units 设为 1 以提高优化效果 - 设置 panic = "abort" 以移除堆栈展开代码 - 启用 strip 自动剥离调试符号 - 针对 WAS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrade Bevy dependency from 0.16 to 0.17.3
Remove references to TransformSystem, adopting the new transform propagation mechanism
Adjust system execution order, eliminating explicit dependency on TransformPropagate