-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
64 lines (56 loc) · 1.6 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
[package]
name = "black_hole_ray_marching"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
winit = "0.30.5"
env_logger = "0.11.5"
log = "0.4"
wgpu = "22.1.0"
bytemuck = { version = "1.12", features = ["derive"] }
anyhow = "1.0"
aligned = "0.4.1"
encase = { version = "0.6.1", features = ["glam"] }
glam = "0.24.2"
cfg-if = "1.0.0"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
egui = { version = "0.29.1", features = ["document-features"] }
# arboard and clipboard features mess up something when compiling to wasm and they are unneeded
egui-winit = { version = "0.29.1", default-features = false, features = [
#"arboard",
"bytemuck",
#"clipboard",
"links",
"smithay-clipboard",
"wayland",
"webbrowser",
"x11",
"document-features",
] }
egui-wgpu = { version = "0.29.1", features = ["wayland", "winit"] }
image = { version = "0.24", default-features = false, features = [
"png",
"jpeg",
] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
pollster = "0.3.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.6"
console_log = "1.0.0"
# wgpu = { version = "22.1.0", features = ["webgpu"] }
# wasm-bindgen = "0.2"
web-sys = { version = "0.3", features = ["Document", "Window", "Element"] }
# [profile.dev]
# debug = false
# opt-level = 2
[features]
default = ["logging"]
keyboard_controls = []
logging = []
# [target.x86_64-pc-windows-gnu]
# linker = "x86_64-w64-mingw32-gcc"
# ar = "x86_64-w64-mingw32-gcc-ar"