-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCargo.toml
47 lines (35 loc) · 1.46 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
[package]
name = "pong_wasm"
version = "0.1.0"
authors = ["Azriel Hoh <[email protected]>"]
edition = "2018"
[lib]
crate-type = ["cdylib"]
path = "src/main.rs"
[[bin]]
name = "pong"
path = "src/main.rs"
[dependencies]
amethyst = { git = "https://github.com/amethyst/amethyst.git", branch = "improvement/2228/chip-away-at-crashes", default-features = false, features = ["audio", "renderer", "vorbis", "wav"] }
log = "0.4.8"
# Convenience snippets to override dependencies.
# [patch."https://github.com/amethyst/amethyst.git"]
# amethyst = { git = "https://github.com/YOUR_USERNAME/amethyst.git", branch = "YOUR_BRANCH" }
# [patch."https://github.com/amethyst/rendy.git"]
# rendy = { git = "https://github.com/YOUR_USERNAME/rendy.git", branch = "YOUR_BRANCH" }
# [patch."https://github.com/amethyst/winit.git"]
# winit = { git = "https://github.com/YOUR_USERNAME/winit.git", branch = "YOUR_BRANCH" }
# [patch."https://github.com/amethyst/gfx.git"]
# gfx = { git = "https://github.com/YOUR_USERNAME/gfx.git", branch = "YOUR_BRANCH" }
# [patch."https://github.com/amethyst/glutin.git"]
# glutin = { git = "https://github.com/YOUR_USERNAME/glutin.git", branch = "YOUR_BRANCH" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = { version = "0.1.6" }
wasm-bindgen = { version = "0.2.62" }
web-sys = { version = "0.3.36" }
[features]
wasm = ["amethyst/wasm"]
gl = ["amethyst/gl"]
vulkan = ["amethyst/vulkan"]
metal = ["amethyst/metal"]
empty = ["amethyst/empty"]