Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/benches/Cargo.toml
9353 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.8.0", features = ["html_reports"] }
14
seq-macro = "0.3.6"
15
16
[dev-dependencies]
17
# Bevy crates
18
bevy_app = { path = "../crates/bevy_app" }
19
bevy_ecs = { path = "../crates/bevy_ecs", features = ["multi_threaded"] }
20
bevy_math = { path = "../crates/bevy_math" }
21
bevy_picking = { path = "../crates/bevy_picking", features = ["mesh_picking"] }
22
bevy_reflect = { path = "../crates/bevy_reflect", features = ["functions"] }
23
bevy_camera = { path = "../crates/bevy_camera" }
24
bevy_mesh = { path = "../crates/bevy_mesh" }
25
bevy_asset = { path = "../crates/bevy_asset" }
26
bevy_render = { path = "../crates/bevy_render" }
27
bevy_tasks = { path = "../crates/bevy_tasks" }
28
bevy_platform = { path = "../crates/bevy_platform", default-features = false, features = [
29
"std",
30
] }
31
32
# Other crates
33
glam = { version = "0.31.0", default-features = false, features = [
34
"std",
35
"rand",
36
] }
37
rand = "0.9"
38
rand_chacha = "0.9"
39
nonmax = { version = "0.5", default-features = false }
40
41
[lints.clippy]
42
doc_markdown = "warn"
43
manual_let_else = "warn"
44
match_same_arms = "warn"
45
redundant_closure_for_method_calls = "warn"
46
redundant_else = "warn"
47
semicolon_if_nothing_returned = "warn"
48
type_complexity = "allow"
49
undocumented_unsafe_blocks = "warn"
50
unwrap_or_default = "warn"
51
needless_lifetimes = "allow"
52
too_many_arguments = "allow"
53
nonstandard_macro_braces = "warn"
54
55
ptr_as_ptr = "warn"
56
ptr_cast_constness = "warn"
57
ref_as_ptr = "warn"
58
59
# see: https://github.com/bevyengine/bevy/pull/15375#issuecomment-2366966219
60
too_long_first_doc_paragraph = "allow"
61
62
allow_attributes = "warn"
63
allow_attributes_without_reason = "warn"
64
65
[lints.rust]
66
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(docsrs_dep)'] }
67
unsafe_op_in_unsafe_fn = "warn"
68
unused_qualifications = "warn"
69
70
[lib]
71
# This fixes the "Unrecognized Option" error when running commands like
72
# `cargo bench -- --save-baseline before` by disabling the default benchmark harness.
73
# See <https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options>
74
# for more information.
75
bench = false
76
77
[[bench]]
78
name = "ecs"
79
path = "benches/bevy_ecs/main.rs"
80
harness = false
81
82
[[bench]]
83
name = "math"
84
path = "benches/bevy_math/main.rs"
85
harness = false
86
87
[[bench]]
88
name = "picking"
89
path = "benches/bevy_picking/main.rs"
90
harness = false
91
92
[[bench]]
93
name = "reflect"
94
path = "benches/bevy_reflect/main.rs"
95
harness = false
96
97
[[bench]]
98
name = "render"
99
path = "benches/bevy_render/main.rs"
100
harness = false
101
102
[[bench]]
103
name = "tasks"
104
path = "benches/bevy_tasks/main.rs"
105
harness = false
106
107