forked from asny/three-d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
58 lines (51 loc) · 2.88 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
[package]
name = "three-d"
version = "0.10.0" # Remember to update example links
authors = ["Asger Nyman Christiansen <[email protected]>"]
edition = "2018"
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"
homepage = "https://asny.github.io/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"]
[features]
default = ["glutin-window", "canvas", "egui-gui", "3d-io", "obj-io", "gltf-io", "image-io"]
glutin-window = ["glutin"] # Default window for desktop (only available when NOT building for the wasm32 architecture)
canvas = [] # Default window for web (only available when building for the wasm32 architecture)
egui-gui = ["egui"] # Additional GUI features
image-io = ["image"] # Additional image functionality, for example loading an image to a texture
3d-io = ["serde", "bincode", "image-io"]
obj-io = ["wavefront_obj", "image-io"]
gltf-io = ["gltf", "image-io"]
debug = [] # Prints OpenGL debug information (only available when NOT building for the wasm32 architecture)
[dependencies]
log = "0.4"
cgmath = "0.18"
half = "1.8"
thiserror = "1.0"
reqwest = {version = "0.11", features = ["blocking"] }
serde = { version = "1.0", features = ["derive"], optional = true }
bincode = { version = "1.2", optional = true }
gltf = { version = "0.16", features = ["utils"], optional = true }
wavefront_obj = { version = "10.0", optional = true }
image = { version = "0.23", optional = true, default-features = false, features = ["gif", "jpeg", "ico", "png", "pnm", "tga", "tiff", "webp", "bmp", "hdr", "dxt", "dds", "farbfeld"]}
egui = { version = "0.13", optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.build-dependencies]
gl_generator = {version = "0.14"}
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
glutin = { version = "0.27", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3"
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
wasm-bindgen-futures = "0.4"
web-sys = { version = "0.3", features = ['Document', 'Element', 'Node', 'HtmlElement', 'HtmlCollection', 'HtmlCanvasElement', 'Window', 'CssStyleDeclaration', 'Event', 'MouseEvent', 'EventTarget', 'WheelEvent', 'KeyboardEvent', 'TouchEvent', 'TouchList', 'Touch','WebGlBuffer','WebGlFramebuffer', 'WebGl2RenderingContext', 'WebGlProgram', 'WebGlShader', 'WebGlTexture', 'WebGlUniformLocation', 'WebGlVertexArrayObject', 'WebGlActiveInfo', 'WebGlSync', 'Performance','Headers', 'Request', 'RequestInit', 'RequestMode', 'Response'] }
gloo-timers = "0.2"
serde = { version = "1.0", features = ["derive"] }
[dev-dependencies]
rand = "0.7"