-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
54 lines (45 loc) · 1.5 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
[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"
[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.0"
bevy_math = { version = "0.14", default-features = false }
rayon = { version = "1.10.0", 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.0"
indoc = "2.0.4"
[[example]]
name = "avian2d_colliders"
path = "examples/avian2d_colliders.rs"
required-features = ["avian2d", "avian2d/debug-plugin"]
[[example]]
name = "rapier2d_colliders"
path = "examples/rapier2d_colliders.rs"
required-features = ["rapier2d", "bevy_rapier2d/debug-render-2d"]