mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
Standardize toml format with taplo (#10594)
# Objective - Standardize fmt for toml files ## Solution - Add [taplo](https://taplo.tamasfe.dev/) to CI (check for fmt and diff for toml files), for context taplo is used by the most popular extension in VScode [Even Better TOML](https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml - Add contribution section to explain toml fmt with taplo. Now to pass CI you need to run `taplo fmt --option indent_string=" "` or if you use vscode have the `Even Better TOML` extension with 4 spaces for indent --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
This commit is contained in:
parent
449dd863dd
commit
8c0ce5280b
29 changed files with 227 additions and 126 deletions
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
|
@ -163,6 +163,26 @@ jobs:
|
|||
VALIDATE_MARKDOWN: true
|
||||
DEFAULT_BRANCH: main
|
||||
|
||||
toml:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install taplo
|
||||
run: |
|
||||
curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-full-linux-x86_64.gz \
|
||||
| gzip -d - \
|
||||
| install -m 755 /dev/stdin /usr/local/bin/taplo
|
||||
- name: Run Taplo
|
||||
id: taplo
|
||||
run: taplo fmt --check --diff
|
||||
- name: Taplo info
|
||||
if: failure()
|
||||
run: |
|
||||
echo 'To fix toml fmt, please run `taplo fmt`'
|
||||
echo 'Or if you use VSCode, use the Even Better Toml extension'
|
||||
|
||||
|
||||
run-examples-on-windows-dx12:
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 60
|
||||
|
|
|
@ -339,9 +339,14 @@ If you're new to Bevy, here's the workflow we use:
|
|||
To locally lint your files using the same workflow as our CI:
|
||||
1. Install [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli).
|
||||
2. Run `markdownlint -f -c .github/linters/.markdown-lint.yml .` in the root directory of the Bevy project.
|
||||
5. Push your changes to your fork on Github and open a Pull Request.
|
||||
6. Respond to any CI failures or review feedback. While CI failures must be fixed before we can merge your PR, you do not need to *agree* with all feedback from your reviews, merely acknowledge that it was given. If you cannot come to an agreement, leave the thread open and defer to a Maintainer or Project Lead's final judgement.
|
||||
7. When your PR is ready to merge, a Maintainer or Project Lead will review it and suggest final changes. If those changes are minimal they may even apply them directly to speed up merging.
|
||||
|
||||
5. When working with Toml (`.toml`) files, Bevy's CI will check toml files using [taplo](https://taplo.tamasfe.dev/): `taplo fmt --check --diff`
|
||||
1. If you use VSCode, install [Even better toml](https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml) and format your files.
|
||||
2. If you want to use the cli tool, install [taplo-cli](https://taplo.tamasfe.dev/cli/installation/cargo.html) and run `taplo fmt --check --diff` to check for the formatting. Fix any issues by running `taplo fmt` in the root directory of the Bevy project.
|
||||
|
||||
6. Push your changes to your fork on Github and open a Pull Request.
|
||||
7. Respond to any CI failures or review feedback. While CI failures must be fixed before we can merge your PR, you do not need to *agree* with all feedback from your reviews, merely acknowledge that it was given. If you cannot come to an agreement, leave the thread open and defer to a Maintainer or Project Lead's final judgement.
|
||||
8. When your PR is ready to merge, a Maintainer or Project Lead will review it and suggest final changes. If those changes are minimal they may even apply them directly to speed up merging.
|
||||
|
||||
If you end up adding a new official Bevy crate to the `bevy` repo:
|
||||
|
||||
|
|
|
@ -14,7 +14,9 @@ bevy_app = { path = "../bevy_app", version = "0.12.0" }
|
|||
bevy_asset = { path = "../bevy_asset", version = "0.12.0" }
|
||||
bevy_core = { path = "../bevy_core", version = "0.12.0" }
|
||||
bevy_math = { path = "../bevy_math", version = "0.12.0" }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [
|
||||
"bevy",
|
||||
] }
|
||||
bevy_render = { path = "../bevy_render", version = "0.12.0" }
|
||||
bevy_time = { path = "../bevy_time", version = "0.12.0" }
|
||||
bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
|
||||
|
|
|
@ -30,7 +30,7 @@ downcast-rs = "1.2.0"
|
|||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
wasm-bindgen = { version = "0.2" }
|
||||
web-sys = { version = "0.3", features = [ "Window" ] }
|
||||
web-sys = { version = "0.3", features = ["Window"] }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
@ -14,7 +14,9 @@ bevy_app = { path = "../bevy_app", version = "0.12.0" }
|
|||
bevy_asset = { path = "../bevy_asset", version = "0.12.0" }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" }
|
||||
bevy_math = { path = "../bevy_math", version = "0.12.0" }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [
|
||||
"bevy",
|
||||
] }
|
||||
bevy_transform = { path = "../bevy_transform", version = "0.12.0" }
|
||||
bevy_derive = { path = "../bevy_derive", version = "0.12.0" }
|
||||
bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
|
||||
|
@ -26,7 +28,9 @@ rodio = { version = "0.17", default-features = false }
|
|||
oboe = { version = "0.5", optional = true }
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
rodio = { version = "0.17", default-features = false, features = ["wasm-bindgen"] }
|
||||
rodio = { version = "0.17", default-features = false, features = [
|
||||
"wasm-bindgen",
|
||||
] }
|
||||
|
||||
[features]
|
||||
mp3 = ["rodio/mp3"]
|
||||
|
|
|
@ -11,10 +11,16 @@ keywords = ["bevy"]
|
|||
|
||||
[dependencies]
|
||||
# bevy
|
||||
bevy_app = { path = "../bevy_app", version = "0.12.0", features = ["bevy_reflect"] }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = ["bevy_reflect"] }
|
||||
bevy_app = { path = "../bevy_app", version = "0.12.0", features = [
|
||||
"bevy_reflect",
|
||||
] }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = [
|
||||
"bevy_reflect",
|
||||
] }
|
||||
bevy_math = { path = "../bevy_math", version = "0.12.0" }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [
|
||||
"bevy",
|
||||
] }
|
||||
bevy_tasks = { path = "../bevy_tasks", version = "0.12.0" }
|
||||
bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
|
||||
|
||||
|
|
|
@ -23,9 +23,13 @@ bevy_hierarchy = { path = "../bevy_hierarchy", version = "0.12.0" }
|
|||
bevy_log = { path = "../bevy_log", version = "0.12.0" }
|
||||
bevy_math = { path = "../bevy_math", version = "0.12.0" }
|
||||
bevy_pbr = { path = "../bevy_pbr", version = "0.12.0" }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [
|
||||
"bevy",
|
||||
] }
|
||||
bevy_render = { path = "../bevy_render", version = "0.12.0" }
|
||||
bevy_scene = { path = "../bevy_scene", version = "0.12.0", features = ["bevy_render"] }
|
||||
bevy_scene = { path = "../bevy_scene", version = "0.12.0", features = [
|
||||
"bevy_render",
|
||||
] }
|
||||
bevy_transform = { path = "../bevy_transform", version = "0.12.0" }
|
||||
bevy_tasks = { path = "../bevy_tasks", version = "0.12.0" }
|
||||
bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
|
||||
|
|
|
@ -15,9 +15,13 @@ trace = []
|
|||
# bevy
|
||||
bevy_app = { path = "../bevy_app", version = "0.12.0" }
|
||||
bevy_core = { path = "../bevy_core", version = "0.12.0" }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = ["bevy_reflect"] }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = [
|
||||
"bevy_reflect",
|
||||
] }
|
||||
bevy_log = { path = "../bevy_log", version = "0.12.0" }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [
|
||||
"bevy",
|
||||
] }
|
||||
bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
|
||||
|
||||
# other
|
||||
|
|
|
@ -17,10 +17,10 @@ trace = [
|
|||
"bevy_log/trace",
|
||||
"bevy_render?/trace",
|
||||
"bevy_hierarchy/trace",
|
||||
"bevy_winit?/trace"
|
||||
"bevy_winit?/trace",
|
||||
]
|
||||
trace_chrome = [ "bevy_log/tracing-chrome" ]
|
||||
trace_tracy = ["bevy_render?/tracing-tracy", "bevy_log/tracing-tracy" ]
|
||||
trace_chrome = ["bevy_log/tracing-chrome"]
|
||||
trace_tracy = ["bevy_render?/tracing-tracy", "bevy_log/tracing-tracy"]
|
||||
trace_tracy_memory = ["bevy_log/trace_tracy_memory"]
|
||||
wgpu_trace = ["bevy_render/wgpu_trace"]
|
||||
detailed_trace = ["bevy_utils/detailed_trace"]
|
||||
|
@ -61,8 +61,20 @@ symphonia-wav = ["bevy_audio/symphonia-wav"]
|
|||
shader_format_glsl = ["bevy_render/shader_format_glsl"]
|
||||
shader_format_spirv = ["bevy_render/shader_format_spirv"]
|
||||
|
||||
serialize = ["bevy_core/serialize", "bevy_input/serialize", "bevy_time/serialize", "bevy_window/serialize", "bevy_transform/serialize", "bevy_math/serialize", "bevy_scene?/serialize"]
|
||||
multi-threaded = ["bevy_asset/multi-threaded", "bevy_ecs/multi-threaded", "bevy_tasks/multi-threaded"]
|
||||
serialize = [
|
||||
"bevy_core/serialize",
|
||||
"bevy_input/serialize",
|
||||
"bevy_time/serialize",
|
||||
"bevy_window/serialize",
|
||||
"bevy_transform/serialize",
|
||||
"bevy_math/serialize",
|
||||
"bevy_scene?/serialize",
|
||||
]
|
||||
multi-threaded = [
|
||||
"bevy_asset/multi-threaded",
|
||||
"bevy_ecs/multi-threaded",
|
||||
"bevy_tasks/multi-threaded",
|
||||
]
|
||||
async-io = ["bevy_tasks/async-io"]
|
||||
|
||||
# Display server protocol support (X11 is enabled by default)
|
||||
|
@ -73,13 +85,27 @@ x11 = ["bevy_winit/x11"]
|
|||
subpixel_glyph_atlas = ["bevy_text/subpixel_glyph_atlas"]
|
||||
|
||||
# Transmission textures in `StandardMaterial`:
|
||||
pbr_transmission_textures = ["bevy_pbr?/pbr_transmission_textures", "bevy_gltf?/pbr_transmission_textures"]
|
||||
pbr_transmission_textures = [
|
||||
"bevy_pbr?/pbr_transmission_textures",
|
||||
"bevy_gltf?/pbr_transmission_textures",
|
||||
]
|
||||
|
||||
# Optimise for WebGL2
|
||||
webgl = ["bevy_core_pipeline?/webgl", "bevy_pbr?/webgl", "bevy_render?/webgl", "bevy_gizmos?/webgl", "bevy_sprite?/webgl"]
|
||||
webgl = [
|
||||
"bevy_core_pipeline?/webgl",
|
||||
"bevy_pbr?/webgl",
|
||||
"bevy_render?/webgl",
|
||||
"bevy_gizmos?/webgl",
|
||||
"bevy_sprite?/webgl",
|
||||
]
|
||||
|
||||
# enable systems that allow for automated testing on CI
|
||||
bevy_ci_testing = ["bevy_app/bevy_ci_testing", "bevy_time/bevy_ci_testing", "bevy_render?/bevy_ci_testing", "bevy_render?/ci_limits"]
|
||||
bevy_ci_testing = [
|
||||
"bevy_app/bevy_ci_testing",
|
||||
"bevy_time/bevy_ci_testing",
|
||||
"bevy_render?/bevy_ci_testing",
|
||||
"bevy_render?/ci_limits",
|
||||
]
|
||||
|
||||
# Enable animation support, and glTF animation loading
|
||||
animation = ["bevy_animation", "bevy_gltf?/bevy_animation"]
|
||||
|
@ -131,7 +157,9 @@ bevy_input = { path = "../bevy_input", version = "0.12.0" }
|
|||
bevy_log = { path = "../bevy_log", version = "0.12.0" }
|
||||
bevy_math = { path = "../bevy_math", version = "0.12.0" }
|
||||
bevy_ptr = { path = "../bevy_ptr", version = "0.12.0" }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [
|
||||
"bevy",
|
||||
] }
|
||||
bevy_time = { path = "../bevy_time", version = "0.12.0" }
|
||||
bevy_transform = { path = "../bevy_transform", version = "0.12.0" }
|
||||
bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
|
||||
|
|
|
@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0"
|
|||
keywords = ["bevy"]
|
||||
|
||||
[features]
|
||||
trace = [ "tracing-error" ]
|
||||
trace = ["tracing-error"]
|
||||
trace_tracy_memory = ["dep:tracy-client"]
|
||||
|
||||
[dependencies]
|
||||
|
@ -17,7 +17,10 @@ bevy_app = { path = "../bevy_app", version = "0.12.0" }
|
|||
bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" }
|
||||
|
||||
tracing-subscriber = {version = "0.3.1", features = ["registry", "env-filter"]}
|
||||
tracing-subscriber = { version = "0.3.1", features = [
|
||||
"registry",
|
||||
"env-filter",
|
||||
] }
|
||||
tracing-chrome = { version = "0.7.0", optional = true }
|
||||
tracing-tracy = { version = "0.10.0", optional = true }
|
||||
tracing-log = "0.1.2"
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
name = "bevy_mikktspace"
|
||||
version = "0.12.0"
|
||||
edition = "2021"
|
||||
authors = ["Benjamin Wasty <benny.wasty@gmail.com>", "David Harvey-Macaulay <alteous@outlook.com>", "Layl Bongers <LaylConway@users.noreply.github.com>"]
|
||||
authors = [
|
||||
"Benjamin Wasty <benny.wasty@gmail.com>",
|
||||
"David Harvey-Macaulay <alteous@outlook.com>",
|
||||
"Layl Bongers <LaylConway@users.noreply.github.com>",
|
||||
]
|
||||
description = "Mikkelsen tangent space algorithm"
|
||||
documentation = "https://docs.rs/bevy"
|
||||
homepage = "https://bevyengine.org"
|
||||
|
|
|
@ -19,7 +19,9 @@ bevy_asset = { path = "../bevy_asset", version = "0.12.0" }
|
|||
bevy_core_pipeline = { path = "../bevy_core_pipeline", version = "0.12.0" }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" }
|
||||
bevy_math = { path = "../bevy_math", version = "0.12.0" }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [
|
||||
"bevy",
|
||||
] }
|
||||
bevy_render = { path = "../bevy_render", version = "0.12.0" }
|
||||
bevy_transform = { path = "../bevy_transform", version = "0.12.0" }
|
||||
bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
|
||||
|
|
|
@ -45,7 +45,9 @@ bevy_hierarchy = { path = "../bevy_hierarchy", version = "0.12.0" }
|
|||
bevy_log = { path = "../bevy_log", version = "0.12.0" }
|
||||
bevy_math = { path = "../bevy_math", version = "0.12.0" }
|
||||
bevy_mikktspace = { path = "../bevy_mikktspace", version = "0.12.0" }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [
|
||||
"bevy",
|
||||
] }
|
||||
bevy_render_macros = { path = "macros", version = "0.12.0" }
|
||||
bevy_time = { path = "../bevy_time", version = "0.12.0" }
|
||||
bevy_transform = { path = "../bevy_transform", version = "0.12.0" }
|
||||
|
@ -60,7 +62,10 @@ image = { version = "0.24", default-features = false }
|
|||
codespan-reporting = "0.11.0"
|
||||
# `fragile-send-sync-non-atomic-wasm` feature means we can't use WASM threads for rendering
|
||||
# It is enabled for now to avoid having to do a significant overhaul of the renderer just for wasm
|
||||
wgpu = { version = "0.17.1", features = ["naga", "fragile-send-sync-non-atomic-wasm"] }
|
||||
wgpu = { version = "0.17.1", features = [
|
||||
"naga",
|
||||
"fragile-send-sync-non-atomic-wasm",
|
||||
] }
|
||||
naga = { version = "0.13.0", features = ["wgsl-in"] }
|
||||
naga_oil = "0.10"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
|
@ -81,7 +86,9 @@ ruzstd = { version = "0.4.0", optional = true }
|
|||
basis-universal = { version = "0.3.0", optional = true }
|
||||
encase = { version = "0.6.1", features = ["glam"] }
|
||||
# For wgpu profiling using tracing. Use `RUST_LOG=info` to also capture the wgpu spans.
|
||||
profiling = { version = "1", features = ["profile-with-tracing"], optional = true }
|
||||
profiling = { version = "1", features = [
|
||||
"profile-with-tracing",
|
||||
], optional = true }
|
||||
async-channel = "1.8"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
|
|
|
@ -18,7 +18,9 @@ bevy_app = { path = "../bevy_app", version = "0.12.0" }
|
|||
bevy_asset = { path = "../bevy_asset", version = "0.12.0" }
|
||||
bevy_derive = { path = "../bevy_derive", version = "0.12.0" }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [
|
||||
"bevy",
|
||||
] }
|
||||
bevy_hierarchy = { path = "../bevy_hierarchy", version = "0.12.0" }
|
||||
bevy_transform = { path = "../bevy_transform", version = "0.12.0" }
|
||||
bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
|
||||
|
|
|
@ -18,7 +18,9 @@ bevy_app = { path = "../bevy_app", version = "0.12.0" }
|
|||
bevy_asset = { path = "../bevy_asset", version = "0.12.0" }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" }
|
||||
bevy_math = { path = "../bevy_math", version = "0.12.0" }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [
|
||||
"bevy",
|
||||
] }
|
||||
bevy_render = { path = "../bevy_render", version = "0.12.0" }
|
||||
bevy_sprite = { path = "../bevy_sprite", version = "0.12.0" }
|
||||
bevy_transform = { path = "../bevy_transform", version = "0.12.0" }
|
||||
|
@ -29,7 +31,7 @@ bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
|
|||
ab_glyph = "0.2.6"
|
||||
glyph_brush_layout = "0.2.1"
|
||||
thiserror = "1.0"
|
||||
serde = {version = "1", features = ["derive"]}
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
@ -16,8 +16,12 @@ bevy_ci_testing = ["bevy_app/bevy_ci_testing"]
|
|||
[dependencies]
|
||||
# bevy
|
||||
bevy_app = { path = "../bevy_app", version = "0.12.0" }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = ["bevy_reflect"] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = [
|
||||
"bevy_reflect",
|
||||
] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [
|
||||
"bevy",
|
||||
] }
|
||||
bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
|
||||
|
||||
# other
|
||||
|
|
|
@ -11,10 +11,14 @@ keywords = ["bevy"]
|
|||
[dependencies]
|
||||
# bevy
|
||||
bevy_app = { path = "../bevy_app", version = "0.12.0" }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = ["bevy_reflect"] }
|
||||
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = [
|
||||
"bevy_reflect",
|
||||
] }
|
||||
bevy_hierarchy = { path = "../bevy_hierarchy", version = "0.12.0" }
|
||||
bevy_math = { path = "../bevy_math", version = "0.12.0" }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] }
|
||||
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [
|
||||
"bevy",
|
||||
] }
|
||||
serde = { version = "1", features = ["derive"], optional = true }
|
||||
thiserror = "1.0"
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ The [Tracy profiling tool](https://github.com/wolfpld/tracy) is:
|
|||
|
||||
There are binaries available for Windows, and installation / build instructions for other operating systems can be found in the [Tracy documentation PDF](https://github.com/wolfpld/tracy/releases/latest/download/tracy.pdf).
|
||||
|
||||
It has a command line capture tool that can record the execution of graphical applications, saving it as a profile file. Tracy has a GUI to inspect these profile files. The GUI app also supports live capture, showing you in real time the trace of your app. The version of tracy must be matched to the version of tracing-tracy used in bevy. A compatibility table can be found on [crates.io](https://crates.io/crates/tracing-tracy) and the version used can be found [here](https://github.com/bevyengine/bevy/blob/latest/crates/bevy_log/Cargo.toml#L22).
|
||||
It has a command line capture tool that can record the execution of graphical applications, saving it as a profile file. Tracy has a GUI to inspect these profile files. The GUI app also supports live capture, showing you in real time the trace of your app. The version of tracy must be matched to the version of tracing-tracy used in bevy. A compatibility table can be found on [crates.io](https://crates.io/crates/tracing-tracy) and the version used can be found [here](https://github.com/bevyengine/bevy/blob/latest/crates/bevy_log/Cargo.toml#L25).
|
||||
|
||||
In one terminal, run:
|
||||
`./capture-release -o my_capture.tracy`
|
||||
|
|
|
@ -9,5 +9,5 @@ license = "MIT OR Apache-2.0"
|
|||
[dependencies]
|
||||
toml_edit = "0.20"
|
||||
tera = "1.15"
|
||||
serde = { version = "1.0", features = [ "derive" ] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
bitflags = "2.3"
|
||||
|
|
Loading…
Reference in a new issue