-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
58 lines (50 loc) · 1.33 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 = "rayca"
version = "0.4.1"
authors = ["Antonio Caggiano <info@antoniocaggiano.eu>"]
edition = "2018"
license = "MIT"
description = "Experimental project which purpose is to learn and apply graphics rendering algorithms such as raytracing"
repository = "https://github.com/fahien/rayca"
[profile.dev.package."*"]
opt-level = 3
[lib]
crate-type = ["cdylib", "rlib"]
[dev-dependencies]
wasm-bindgen-test = "0.3.33"
[dependencies]
gltf = "1.0.0"
num-traits = "0.2.15"
owo-colors = { version = "3.5.0", features = ["supports-colors"] }
png = "0.17.7"
rayon = { version = "1.6.0", optional = true }
base64 = "0.13.1"
jpeg-decoder = "0.3.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
instant = "0.1.12"
# Web dependencies
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.83"
wasm-bindgen-futures = "0.4.33"
console_error_panic_hook = "0.1.7"
instant = { version = "0.1.12", features = [ "wasm-bindgen", "inaccurate" ] }
js-sys = "0.3.60"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.60"
features = [
"console",
"Window",
"Document",
"Performance",
"HtmlCanvasElement",
"CanvasRenderingContext2d",
"ImageData",
'Headers',
'Request',
'RequestInit',
'RequestMode',
'Response',
]
[features]
default = ["parallel"]
parallel = ["rayon"]