forked from asny/three-d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
48 lines (41 loc) · 1.73 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
[package]
name = "dust"
version = "0.1.0"
authors = ["Asger Nyman Christiansen <[email protected]>"]
edition = "2018"
[features]
default = ["glutin-window", "canvas", "3d-io", "image-io"]
glutin-window = ["glutin"] # Default window for desktop (only available when NOT building for the wasm32 architecture)
canvas = ["wasm-bindgen", "web-sys"] # Default window for web (only available when building for the wasm32 architecture)
image-io = ["image"] # Additional image functionality, for example loading an image to a texture
3d-io = ["serde", "bincode"]
no-renderer = [] # Does not include the deferred renderer, but only core OpenGL/WebGL functionality.
gl-debug = ["gl/debug"] # Prints OpenGL debug information (only available when NOT building for the wasm32 architecture)
[dependencies]
gl = { path = "lib/gl" }
cgmath = "0.17"
num = "0.2"
num-traits = "0.2"
num-derive = "0.3"
log = "0.4"
wavefront_obj = { version = "7.0", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
bincode = { version = "1.2", optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.glutin]
version = "0.19.0"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
optional = true
features = ['Document', 'Element', 'Node', 'HtmlElement', 'HtmlCanvasElement', 'Window', 'Event', 'MouseEvent', 'EventTarget', 'WheelEvent',
'KeyboardEvent', 'TouchEvent', 'TouchList', 'Touch']
[dependencies.image]
version = "0.22"
optional = true
default-features = false
features = ["gif_codec", "jpeg", "ico", "png_codec", "pnm", "tga", "tiff", "webp", "bmp", "hdr", "dxt"]
[dev-dependencies]
tri-mesh = "0.5.0"