/
Cargo.toml
34 lines (27 loc) · 953 Bytes
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[package]
name = "bevyjam2"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = "0.8.0"
rand = "0.8.5"
uuid = "1.1.2"
# Not compatible with Windows' builds
[target.'cfg(not(windows))'.dev-dependencies]
pre-commit = "0.5.2"
# Enable a small amount of optimization in debug mode
[profile.dev]
opt-level = 1
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
[profile.dev.package."*"]
opt-level = 3
# Setup git hooks for precommit
[package.metadata.precommit]
check = "cargo check" # ensure package can compile
clippy = "cargo clippy -- -D warnings" # run clippy linting
fmt = "cargo fmt --all -- --check" # check format
test = "cargo test" # ensure unit tests pass
# wgpu fix for flickering (temporary)
[patch.crates-io]
wgpu = { git = "https://github.com/mockersf/wgpu/", branch = "unconditional-clear-workaround" }