Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_diagnostic/Cargo.toml
6592 views
1
[package]
2
name = "bevy_diagnostic"
3
version = "0.17.0-dev"
4
edition = "2024"
5
description = "Provides diagnostic functionality for Bevy Engine"
6
homepage = "https://bevy.org"
7
repository = "https://github.com/bevyengine/bevy"
8
license = "MIT OR Apache-2.0"
9
keywords = ["bevy"]
10
11
[features]
12
default = ["std", "bevy_ecs/default"]
13
14
# Functionality
15
16
## Adds serialization support through `serde`.
17
serialize = [
18
"dep:serde",
19
"bevy_ecs/serialize",
20
"bevy_time/serialize",
21
"bevy_platform/serialize",
22
]
23
24
## Disables diagnostics that are unsupported when Bevy is dynamically linked
25
dynamic_linking = []
26
27
## Adds integration with `sysinfo`.
28
sysinfo_plugin = ["sysinfo"]
29
30
# Platform Compatibility
31
32
## Allows access to the `std` crate. Enabling this feature will prevent compilation
33
## on `no_std` targets, but provides access to certain additional features on
34
## supported platforms.
35
std = [
36
"serde?/std",
37
"bevy_ecs/std",
38
"bevy_app/std",
39
"bevy_platform/std",
40
"bevy_time/std",
41
]
42
43
## `critical-section` provides the building blocks for synchronization primitives
44
## on all platforms, including `no_std`.
45
critical-section = [
46
"bevy_ecs/critical-section",
47
"bevy_app/critical-section",
48
"bevy_platform/critical-section",
49
"bevy_time/critical-section",
50
]
51
52
[dependencies]
53
# bevy
54
bevy_app = { path = "../bevy_app", version = "0.17.0-dev", default-features = false }
55
bevy_ecs = { path = "../bevy_ecs", version = "0.17.0-dev", default-features = false }
56
bevy_time = { path = "../bevy_time", version = "0.17.0-dev", default-features = false }
57
bevy_tasks = { path = "../bevy_tasks", version = "0.17.0-dev", default-features = false }
58
bevy_platform = { path = "../bevy_platform", version = "0.17.0-dev", default-features = false, features = [
59
"alloc",
60
] }
61
62
# other
63
atomic-waker = { version = "1", default-features = false }
64
const-fnv1a-hash = "1.1.0"
65
serde = { version = "1.0", default-features = false, features = [
66
"alloc",
67
], optional = true }
68
log = { version = "0.4", default-features = false }
69
70
# macOS
71
[target.'cfg(all(target_os="macos"))'.dependencies]
72
# Some features of sysinfo are not supported by apple. This will disable those features on apple devices
73
sysinfo = { version = "0.37.0", optional = true, default-features = false, features = [
74
"apple-app-store",
75
"system",
76
] }
77
78
# Only include when on linux/windows/android/freebsd
79
[target.'cfg(any(target_os = "linux", target_os = "windows", target_os = "android", target_os = "freebsd"))'.dependencies]
80
sysinfo = { version = "0.37.0", optional = true, default-features = false, features = [
81
"system",
82
] }
83
84
[dev-dependencies]
85
serde_test = "1.0"
86
87
[lints]
88
workspace = true
89
90
[package.metadata.docs.rs]
91
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
92
all-features = true
93
94