forked from asny/three-d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
146 lines (116 loc) · 3.48 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[package]
name = "three-d"
version = "0.14.0" # Remember to update example links
authors = ["Asger Nyman Christiansen <[email protected]>"]
edition = "2021"
description = "2D/3D renderer - makes it simple to draw stuff across platforms (including web)"
license = "MIT"
readme = "README.md"
repository = "https://github.com/asny/three-d"
categories = ["graphics", "rendering", "visualization", "wasm", "web-programming"]
keywords = ["3d", "gamedev", "webassembly", "opengl", "webgl"]
exclude = ["/examples", ".gitignore", "index.html"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc", "wasm32-unknown-unknown"]
[features]
default = ["window"]
window = ["glutin", "winit"] # Window module
egui-gui = ["egui_glow", "egui"] # Additional GUI features
[dependencies]
glow = "0.11"
cgmath = "0.18"
three-d-asset = {git="https://github.com/asny/three-d-asset"}
thiserror = "1"
winit = {version = "0.27", optional = true}
egui = { version = "0.19", optional = true }
egui_glow = { version = "0.19", optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
glutin = { version = "0.29", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = {version = "0.2", features = ["serde-serialize"] }
serde_json = "1"
web-sys = { version = "0.3", features = ['Document', 'HtmlCollection', 'HtmlCanvasElement', 'Window'] }
instant = "0.1.12"
[dev-dependencies]
rand = "0.8"
three-d-asset = {git="https://github.com/asny/three-d-asset", features = ["hdr", "gltf", "obj", "vol", "pcd", "png", "jpeg", "http"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
[[example]]
name = "triangle"
path = "examples/triangle/src/main.rs"
[[example]]
name = "screen"
path = "examples/screen/src/main.rs"
required-features = ["egui-gui"]
[[example]]
name = "mandelbrot"
path = "examples/mandelbrot/src/main.rs"
[[example]]
name = "shapes2d"
path = "examples/shapes2d/src/main.rs"
[[example]]
name = "shapes"
path = "examples/shapes/src/main.rs"
[[example]]
name = "sprites"
path = "examples/sprites/src/main.rs"
[[example]]
name = "texture"
path = "examples/texture/src/main.rs"
[[example]]
name = "volume"
path = "examples/volume/src/main.rs"
required-features = ["egui-gui"]
[[example]]
name = "point_cloud"
path = "examples/point_cloud/src/main.rs"
[[example]]
name = "picking"
path = "examples/picking/src/main.rs"
[[example]]
name = "environment"
path = "examples/environment/src/main.rs"
required-features = ["egui-gui"]
[[example]]
name = "pbr"
path = "examples/pbr/src/main.rs"
required-features = ["egui-gui"]
[[example]]
name = "lighting"
path = "examples/lighting/src/main.rs"
required-features = ["egui-gui"]
[[example]]
name = "lights"
path = "examples/lights/src/main.rs"
required-features = ["egui-gui"]
[[example]]
name = "image"
path = "examples/image/src/main.rs"
required-features = ["egui-gui"]
[[example]]
name = "fog"
path = "examples/fog/src/main.rs"
[[example]]
name = "fireworks"
path = "examples/fireworks/src/main.rs"
[[example]]
name = "statues"
path = "examples/statues/src/main.rs"
required-features = ["egui-gui"]
[[example]]
name = "wireframe"
path = "examples/wireframe/src/main.rs"
[[example]]
name = "forest"
path = "examples/forest/src/main.rs"
[[example]]
name = "normals"
path = "examples/normals/src/main.rs"
[[example]]
name = "headless"
path = "examples/headless/src/main.rs"
[[example]]
name = "logo"
path = "examples/logo/src/main.rs"