-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
108 lines (87 loc) · 2.34 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[package]
name = "srs2dge"
edition.workspace = true
version.workspace = true
description.workspace = true
license.workspace = true
repository.workspace = true
documentation.workspace = true
keywords.workspace = true
categories.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib", "rlib"]
# features
[features]
default = ["dynamic", "all"]
dynamic = ["srs2dge-link-dynamic"]
all = ["parallel-ecs", "gizmos", "gui", "gui-derive", "gui-gizmos", "presets", "res", "text"]
parallel-ecs = ["srs2dge-link-static/parallel-ecs"]
ecs = ["srs2dge-link-static/ecs"]
gizmos = ["srs2dge-link-static/gizmos"]
gui = ["srs2dge-link-static/gui"]
gui-derive = ["srs2dge-link-static/gui-derive"]
gui-gizmos = ["srs2dge-link-static/gui-gizmos"]
presets = ["srs2dge-link-static/presets"]
res = ["srs2dge-link-static/res"]
text = ["srs2dge-link-static/text"]
# deps
[dependencies]
srs2dge-link-static = { path = "crates/srs2dge-link-static" }
srs2dge-link-dynamic = { path = "crates/srs2dge-link-dynamic", optional = true }
[dev-dependencies]
instant = "0.1"
rand = "0.8"
rand_chacha = "0.3"
legion = { version = "0.4", default-features = false, features = [
"codegen",
"wasm-bindgen",
"serialize",
] }
serde = { version = "1.0", features = ["derive"] }
ron = "0.8"
fastrand = "1.7"
tracing.workspace = true
# rapier2d = "0.11"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
web-sys = { version = "0.3.60", default-features = false, features = ["Window", "Storage"] }
# workspace
[workspace]
members = ["crates/*"]
resolver = "2"
[workspace.package]
edition = "2021"
version = "0.5.0"
description = "Simple Rust 2D Game Engine"
license = "MIT"
repository = "https://github.com/Overpeek/srs2dge"
documentation = "https://docs.rs/srs2dge"
keywords = ["game", "engine"]
categories = ["game-engines", "graphics"]
[workspace.dependencies]
tracing = "0.1"
rand = "0.8.5"
# examples
[[example]]
name = "gui"
path = "examples/gui/main/main.rs"
[[example]]
name = "loading_screen"
path = "examples/gui/loading_screen/main.rs"
[profile.release-wasm]
inherits = "release"
lto = true
codegen-units = 1
opt-level = 'z'
debug = false
[profile.release]
debug = true
rpath = true
[profile.dev]
rpath = true
[profile.release-opt]
inherits = "release"
lto = true
codegen-units = 1
opt-level = 3
debug = false