generated from Leafwing-Studios/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
94 lines (71 loc) · 2.45 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[package]
name = "bevy_generative_grammars"
description = "A plugin for handling generative grammars in bevy"
version = "0.0.2"
authors = ["Lee-Orr"]
homepage = "https://lee-orr.github.io/bevy-generative-grammar"
repository = "/~https://github.com/lee-orr/bevy-generative-grammars"
documentation = "https://lee-orr.github.io/bevy-generative-grammars"
readme = "README.md"
license = "MIT OR Apache-2.0"
edition = "2021"
categories = ["games", "game-development"]
keywords = ["bevy", "procedural", "generation", "tracery"]
exclude = ["assets/**/*", "tools/**/*", ".github/**/*"]
resolver = "2"
[workspace]
members = ["./", "tools/ci"]
[features]
default = ["json"]
bevy = ["dep:bevy"]
serde = ["dep:serde"]
asset = ["bevy", "serde", "dep:bevy_common_assets"]
json = ["asset", "bevy_common_assets?/json"]
msgpack = ["asset", "bevy_common_assets?/msgpack"]
ron = ["asset", "bevy_common_assets?/ron"]
toml = ["asset", "bevy_common_assets?/toml"]
yaml = ["asset", "bevy_common_assets?/yaml"]
rand = ["dep:rand"]
turborand = ["bevy", "dep:bevy_turborand"]
[dependencies]
bevy = { version = "0.12", default-features = false, optional = true }
bevy_common_assets = { version = "0.8", optional = true }
serde = { version = "1", optional = true }
rand = { version = "0.8", optional = true }
bevy_turborand = { version = "0.7", optional = true }
[patch.crates-io]
# We can override the bevy version with remote or local versions
# This method causes less pain to downstream users trying to work off your revisions
#bevy = { git = "/~https://github.com/bevyengine/bevy" }
#bevy = { path = "../bevy" }
[dev-dependencies]
criterion = "0.5"
# We can use a different feature set of Bevy for our library vs our examples and tests
bevy = { version = "0.12", default-features = false }
[lib]
name = "bevy_generative_grammars"
path = "src/lib.rs"
[[bench]]
name = "tracery_stateful_generator"
path = "benches/tracery_stateful_generator.rs"
harness = false
[[bench]]
name = "tracery_stateless_generator"
path = "benches/tracery_stateless_generator.rs"
harness = false
[[example]]
name = "bevy_simple"
path = "examples/bevy_simple.rs"
required-features = ["bevy", "turborand"]
[[example]]
name = "bevy_asset"
path = "examples/bevy_asset.rs"
required-features = ["json", "turborand"]
[[example]]
name = "without_bevy_stateful"
path = "examples/without_bevy_stateful.rs"
required-features = ["rand"]
[[example]]
name = "without_bevy_stateless"
path = "examples/without_bevy_stateless.rs"
required-features = ["rand"]