-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCargo.toml
More file actions
81 lines (66 loc) · 2.19 KB
/
Copy pathCargo.toml
File metadata and controls
81 lines (66 loc) · 2.19 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[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.7.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 }
needless_pass_by_value = { level = "allow", priority = 1 }
pedantic = { level = "warn", priority = 0 }
[features]
default = ["rapier2d", "parallel", "plugin", "preprocess"]
avian2d = ["dep:avian2d"]
rapier2d = ["dep:bevy_rapier2d"]
parallel = ["edges/parallel"]
plugin = ["bevy/bevy_sprite", "bevy/bevy_asset", "bevy/bevy_log"]
preprocess = ["dep:serde", "dep:ron", "bevy/bevy_sprite", "bevy/bevy_asset", "bevy/asset_processor", "bevy/png", "bevy/serialize", "bevy/bevy_render"]
[dependencies]
image = { version = "0.25", default-features = false }
edges = "0.9"
bevy = { version = "0.18", default-features = false, features = ["bevy_image"] }
[dependencies.bevy_rapier2d]
version = "0.34"
optional = true
default-features = false
features = ["dim2", "headless"]
[dependencies.avian2d]
version = "0.6"
optional = true
default-features = false
features = ["2d", "parry-f32"]
[dependencies.serde]
version = "1"
optional = true
[dependencies.ron]
version = "0.12"
optional = true
[dev-dependencies]
bevy = "0.18"
bevy_prototype_lyon = "0.16"
indoc = "2"
[dev-dependencies.bevy_rapier2d]
version = "0.34"
features = ["debug-render-2d"]
[dev-dependencies.avian2d]
version = "0.6"
features = ["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"]
[[example]]
name = "texture_atlas"
path = "examples/texture_atlas.rs"
required-features = ["plugin"]