forked from shnewto/bevy_collider_gen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
67 lines (55 loc) · 1.79 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[package]
name = "bevy_collider_gen"
# don't manually edit this version unless you're sure you want to circumvent the process documented in RELEASE.md
version = "0.3.0"
edition = "2021"
homepage = "https://github.com/shnewto/bevy_collider_gen"
license = "MIT OR Apache-2.0"
repository = "https://github.com/shnewto/bevy_collider_gen"
description = "a library for generating colliders, for bevy apps, from images with transparency"
keywords = ["bevy", "rapier", "png", "collider", "2d"]
readme = "README.md"
exclude = ["assets/*", ".github/*", "examples/*"]
include = ["/LICENSE-APACHE", "/LICENSE-MIT", "/README.md", "/src/"]
[lints.clippy]
cast_precision_loss = { level = "allow", priority = 1 }
pedantic = { level = "warn", priority = 0 }
[features]
default = ["rapier2d", "parallel"]
avian2d = ["dep:avian2d"]
rapier2d = ["dep:bevy_rapier2d"]
parallel = ["dep:rayon", "avian2d/parallel", "bevy_rapier2d/parallel"]
[dependencies]
edges = "0.4"
bevy_math = { version = "0.14", default-features = false }
rayon = { version = "1", optional = true }
[dependencies.bevy_rapier2d]
version = "0.27"
optional = true
default-features = false
features = ["dim2", "headless"]
[dependencies.avian2d]
version = "0.1"
optional = true
default-features = false
features = ["2d", "parry-f32"]
[dev-dependencies]
bevy = "0.14"
bevy_prototype_lyon = "0.12"
indoc = "2.0.4"
[dev-dependencies.bevy_rapier2d]
version = "0.27"
default-features = false
features = ["dim2", "headless", "debug-render-2d"]
[dev-dependencies.avian2d]
version = "0.1"
default-features = false
features = ["2d", "parry-f32", "debug-plugin"]
[[example]]
name = "avian2d_colliders"
path = "examples/avian2d_colliders.rs"
required-features = ["avian2d"]
[[example]]
name = "rapier2d_colliders"
path = "examples/rapier2d_colliders.rs"
required-features = ["rapier2d"]