forked from mrk-its/bevy_webgl2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
128 lines (105 loc) · 2.53 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[package]
authors = ["Mariusz Kryński <[email protected]>"]
description = "A webgl2 wasm32 render backend for Bevy Engine"
edition = "2018"
keywords = ["bevy", "webgl", "webgl2"]
license = "MIT"
name = "bevy_webgl2"
version = "0.5.2"
repository = "https://github.com/mrk-its/bevy_webgl2"
readme = "README.md"
exclude = ["assets/**/*", ".github/**/*", "index.html", "fix_bevy_example.sh", "Makefile.toml"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = [
"bevy/bevy_winit",
"bevy/render",
"bevy/bevy_gltf",
"bevy/png",
]
[dependencies]
winit = {version = "0.25", features = ["web-sys"]}
bevy = { git = "https://github.com/bevyengine/bevy", default-features=false }
regex = "1.5"
cfg-if = "1.0"
js-sys = "0.3"
parking_lot = "0.11"
wasm-bindgen = "0.2"
web-sys = {version = "0.3", features = [
'Document',
'Element',
'HtmlCanvasElement',
'WebGlBuffer',
'WebGlRenderingContext',
'WebGl2RenderingContext',
'WebGlProgram',
'WebGlShader',
'Window',
'WebGlFramebuffer',
'WebGlTexture',
'WebGlUniformLocation',
'WebGlActiveInfo',
'WebGlVertexArrayObject',
'WebGlSync',
]}
[dev-dependencies]
compile-time-run = "0.2"
rand = "0.8"
getrandom = { version = "0.1", features = ["wasm-bindgen"] }
[profile.release]
opt-level = 's'
codegen-units = 1
lto = true
# opt-level = 3
[[example]]
name = "sprite"
path = "examples/2d/sprite.rs"
[[example]]
name = "sprite_sheet"
path = "examples/2d/sprite_sheet.rs"
# disabled as it do not compile on github Actions
# [[example]]
# name = "contributors"
# path = "examples/2d/contributors.rs"
[[example]]
name = "3d_scene"
path = "examples/3d/3d_scene.rs"
[[example]]
name = "pbr"
path = "examples/3d/pbr.rs"
[[example]]
name = "texture"
path = "examples/3d/texture.rs"
[[example]]
name = "load_gltf"
path = "examples/3d/load_gltf.rs"
[[example]]
name = "parenting"
path = "examples/3d/parenting.rs"
[[example]]
name = "text"
path = "examples/ui/text.rs"
[[example]]
name = "button"
path = "examples/ui/button.rs"
[[example]]
name = "font_atlas_debug"
path = "examples/ui/font_atlas_debug.rs"
[[example]]
name = "text_debug"
path = "examples/ui/text_debug.rs"
[[example]]
name = "ui"
path = "examples/ui/ui.rs"
[[example]]
name = "breakout"
path = "examples/game/breakout.rs"
[[example]]
name = "shader_defs"
path = "examples/shader/shader_defs.rs"
[[example]]
name = "shader_custom_material"
path = "examples/shader/shader_custom_material.rs"
[[example]]
name = "mesh_custom_attribute"
path = "examples/shader/mesh_custom_attribute.rs"