Skip to content

Commit be9e573

Browse files
committed
check
1 parent 0476e2a commit be9e573

File tree

14 files changed

+363
-317
lines changed

14 files changed

+363
-317
lines changed

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,75 @@ license = "MIT OR Apache-2.0"
1010
repository = "https://github.com/databasedav/jonmo"
1111
documentation = "https://docs.rs/jonmo"
1212

13-
[lints.rust]
14-
missing_docs = "warn"
15-
unsafe_code = "deny"
16-
1713
[dependencies]
1814
bevy_app = { version = "0.16", default-features = false }
1915
bevy_derive = { version = "0.16", default-features = false }
2016
bevy_ecs = { version = "0.16", default-features = false }
21-
bevy_log = { version = "0.16", default-features = false }
2217
bevy_platform = { version = "0.16", default-features = false }
23-
bevy_time = { version = "0.16", default-features = false }
18+
bevy_log = { version = "0.16", default-features = false, optional = true }
19+
bevy_time = { version = "0.16", default-features = false, optional = true }
2420
enclose = "1.2"
2521
dyn-clone = "1.0"
2622
apply = "0.3"
2723
cfg-if = "1.0"
24+
document-features = { version = "0.2", optional = true }
2825

2926
[features]
27+
default = ["builder", "tracing", "time", "std"]
28+
29+
## Enables access to jonmo's high-level entity builder, `JonmoBuilder`.
30+
builder = []
31+
32+
## Enables access to signal ext `.debug` methods, which conveniently logs signal outputs at any step.
33+
tracing = ["bevy_log"]
34+
35+
## Enables access to `SignalExt::throttle`, which delays subsequent outputs by some `Duration`.
36+
time = ["bevy_time"]
37+
38+
## `DebugUiPlugin` which enables toggling [`bevy_dev_tools::ui_debug_overlay::DebugUiPlugin`](https://docs.rs/bevy/latest/bevy/dev_tools/ui_debug_overlay/struct.DebugUiPlugin.html) with the `F1` key; requires a camera to be marked with the [`IsDefaultCamera`](https://docs.rs/bevy/latest/bevy/prelude/struct.IsDefaultUiCamera.html#) component.
3039
debug = ["bevy/bevy_ui_debug"]
40+
41+
## Uses the Rust standard library.
42+
std = [
43+
"bevy_app/std",
44+
"bevy_ecs/std",
45+
"bevy_platform/std",
46+
"bevy_time?/std",
47+
]
48+
49+
## Rely on `critical-section` for synchronization primitives.
50+
critical-section = [
51+
"bevy_app/critical-section",
52+
"bevy_ecs/critical-section",
53+
"bevy_platform/critical-section",
54+
"bevy_time?/critical-section",
55+
]
56+
57+
## Enables access to browser APIs in a web context.
58+
web = [
59+
"bevy_app/web",
60+
"bevy_platform/web",
61+
]
62+
3163
deployed_wasm_example = []
3264

3365
[dev-dependencies]
3466
bevy = "0.16"
3567
rand = "0.9"
3668

69+
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.getrandom]
70+
version = "0.3"
71+
features = ["wasm_js"]
72+
73+
[lints.rust]
74+
missing_docs = "warn"
75+
unsafe_code = "deny"
76+
77+
[lints.clippy]
78+
std_instead_of_core = "warn"
79+
std_instead_of_alloc = "warn"
80+
alloc_instead_of_core = "warn"
81+
3782
[[example]]
3883
name = "basic"
3984
path = "examples/basic.rs"

0 commit comments

Comments
 (0)