Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/benches/Cargo.toml
6590 views
1
[package]
2
name = "benches"
3
edition = "2024"
4
description = "Benchmarks that test Bevy's performance"
5
publish = false
6
license = "MIT OR Apache-2.0"
7
# Do not automatically discover benchmarks, we specify them manually instead.
8
autobenches = false
9
10
[dependencies]
11
# The primary crate that runs and analyzes our benchmarks. This is a regular dependency because the
12
# `bench!` macro refers to it in its documentation.
13
criterion = { version = "0.6.0", features = ["html_reports"] }
14
15
[dev-dependencies]
16
# Bevy crates
17
bevy_app = { path = "../crates/bevy_app" }
18
bevy_ecs = { path = "../crates/bevy_ecs", features = ["multi_threaded"] }
19
bevy_math = { path = "../crates/bevy_math" }
20
bevy_picking = { path = "../crates/bevy_picking", features = [
21
"bevy_mesh_picking_backend",
22
] }
23
bevy_reflect = { path = "../crates/bevy_reflect", features = ["functions"] }
24
bevy_camera = { path = "../crates/bevy_camera" }
25
bevy_mesh = { path = "../crates/bevy_mesh" }
26
bevy_asset = { path = "../crates/bevy_asset" }
27
bevy_render = { path = "../crates/bevy_render" }
28
bevy_tasks = { path = "../crates/bevy_tasks" }
29
bevy_platform = { path = "../crates/bevy_platform", default-features = false, features = [
30
"std",
31
] }
32
33
# Other crates
34
glam = "0.30.1"
35
rand = "0.9"
36
rand_chacha = "0.9"
37
nonmax = { version = "0.5", default-features = false }
38
39
[lints.clippy]
40
doc_markdown = "warn"
41
manual_let_else = "warn"
42
match_same_arms = "warn"
43
redundant_closure_for_method_calls = "warn"
44
redundant_else = "warn"
45
semicolon_if_nothing_returned = "warn"
46
type_complexity = "allow"
47
undocumented_unsafe_blocks = "warn"
48
unwrap_or_default = "warn"
49
needless_lifetimes = "allow"
50
too_many_arguments = "allow"
51
nonstandard_macro_braces = "warn"
52
53
ptr_as_ptr = "warn"
54
ptr_cast_constness = "warn"
55
ref_as_ptr = "warn"
56
57
# see: https://github.com/bevyengine/bevy/pull/15375#issuecomment-2366966219
58
too_long_first_doc_paragraph = "allow"
59
60
allow_attributes = "warn"
61
allow_attributes_without_reason = "warn"
62
63
[lints.rust]
64
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(docsrs_dep)'] }
65
unsafe_op_in_unsafe_fn = "warn"
66
unused_qualifications = "warn"
67
68
[lib]
69
# This fixes the "Unrecognized Option" error when running commands like
70
# `cargo bench -- --save-baseline before` by disabling the default benchmark harness.
71
# See <https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options>
72
# for more information.
73
bench = false
74
75
[[bench]]
76
name = "ecs"
77
path = "benches/bevy_ecs/main.rs"
78
harness = false
79
80
[[bench]]
81
name = "math"
82
path = "benches/bevy_math/main.rs"
83
harness = false
84
85
[[bench]]
86
name = "picking"
87
path = "benches/bevy_picking/main.rs"
88
harness = false
89
90
[[bench]]
91
name = "reflect"
92
path = "benches/bevy_reflect/main.rs"
93
harness = false
94
95
[[bench]]
96
name = "render"
97
path = "benches/bevy_render/main.rs"
98
harness = false
99
100
[[bench]]
101
name = "tasks"
102
path = "benches/bevy_tasks/main.rs"
103
harness = false
104
105