-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
83 lines (72 loc) · 1.75 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
[package]
authors = ["jjy"]
description = "Roast2D is a homebrew 2D game engine"
edition = "2021"
license = "MIT"
name = "roast2d"
repository = "https://github.com/jjyr/roast2d"
version = "0.0.12"
[workspace]
exclude = ["benches", "examples"]
members = [
"examples/*",
"roast2d_derive",
"roast2d_physics",
"roast2d_ldtk",
"examples/breakout",
]
[lib]
crate-type = ["cdylib", "rlib"]
[features]
debug_mut = []
# Require SDL2 platform
sdl2-bundled = ["sdl2/bundled"]
sdl2-static-link = ["sdl2/static-link"]
# Require Web platform
web-debug = ["console_error_panic_hook"]
[dependencies]
anyhow = "1.0"
glam = "0.29.2"
image = { version = "0.25", default-features = false, features = ["png"] }
log = "0.4.22"
rusttype = "0.9.3"
roast2d_derive = { version = "0", path = "roast2d_derive" }
hashbrown = "0.15"
thiserror = "2.0"
# Non-Wasm32 target
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
sdl2 = { version = "0.37.0", features = ["unsafe_textures"] }
# Wasm32 target
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = { version = "0.1.7", optional = true }
console_log = "1.0"
js-sys = "0.3"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
features = [
"Window",
"Document",
"Element",
"HtmlCanvasElement",
"CanvasRenderingContext2d",
"WorkerGlobalScope",
"Response",
"ImageData",
"ImageBitmap",
"MouseEvent",
"KeyboardEvent",
"Performance",
"CssStyleDeclaration",
]
version = "0.3"
[lints.clippy]
too_many_arguments = "allow"
[dev-dependencies]
criterion = "0.5.1"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
getrandom = { version = "0.2", features = ["js"] }
wasm-bindgen-test = "0.3"
[[bench]]
name = "sat_collision"
harness = false