-
-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy pathCargo.toml
More file actions
100 lines (90 loc) · 3.01 KB
/
Copy pathCargo.toml
File metadata and controls
100 lines (90 loc) · 3.01 KB
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
[package]
authors = ["Sébastien Crozet <developer@crozet.re>"]
name = "kiss3d"
version = "0.44.0"
autoexamples = true
description = "Keep it simple, stupid, 2D and 3D graphics engine for Rust."
edition = "2018"
keywords = ["graphics", "wgpu", "KISS"]
license = "BSD-3-Clause"
readme = "README.md"
repository = "https://github.com/dimforge/kiss3d"
include = [
"src/**/*.rs",
"src/**/*.wgsl",
"src/text/*.ttf",
"src/builtin/tony_mc_mapface.bin",
"examples/**/*.rs",
"examples/media",
"examples/Cargo.toml",
"Cargo.toml",
"/LICENSE",
"/Readme.md",
]
[lib]
name = "kiss3d"
path = "src/lib.rs"
[features]
# `rfd` powers the inspector's native "Open…" image dialogs (unused on wasm, which
# falls back to a path text field).
egui = ["dep:egui", "dep:egui-wgpu", "dep:rfd"]
recording = ["dep:ffmpeg-the-third"]
serde = ["dep:serde", "glamx/serde", "bitflags/serde", "rgb/serde"]
# If enabled, switching between the ray-tracer and the rasterizer is possible while kipping
# only the `.render_3d` call (instead of having to manually switch between `.render_3d` and
# `.raytrace_3d`. This is mainly for debugging and experiments comparing the rasterizer and
# the raytracer.
rt_switcher = []
[dependencies]
bitflags = "2"
bytemuck = { version = "1", features = ["derive"] }
egui = { version = "0.34", optional = true, default-features = true }
egui-wgpu = { version = "0.34", optional = true }
gltf = { version = "1.4", features = ["import", "utils", "names"] }
image = { version = "0.25", default-features = false, features = ["default-formats"] }
log = "0.4"
rfd = { version = "0.15", optional = true }
web-time = "1"
kiss3d-macro = { version = "0.36.0", path = "kiss3d-macro" }
glamx = { version = "0.3", features = ["bytemuck"] }
ffmpeg-the-third = { version = "4", optional = true }
num-traits = "0.2"
rgb = "0.8"
rusttype = { version = "0.9", features = ["gpu_cache"] }
serde = { version = "1", features = ["derive"], optional = true }
wgpu = "29"
winit = "0.30"
wesl = "0.4"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
pollster = "0.4"
[target.wasm32-unknown-unknown.dependencies]
oneshot = { version = "0.2.0", features = ["async"] }
# We depend on getrandom 0.3 only to enable its wasm_js feature.
# And this is needed only because some dependencies still depend on 0.3.
getrandom_03 = { package = "getrandom", version = "0.3", features = ["wasm_js"] }
getrandom = { version = "0.4", features = ["wasm_js"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4.54"
web-sys = { version = "0.3", features = [
"console",
"KeyEvent",
"KeyboardEvent",
"MouseEvent",
"WheelEvent",
"Touch",
"TouchEvent",
"TouchList",
"HtmlCanvasElement",
"HtmlElement",
"Window",
"UiEvent",
"Event",
"EventTarget",
"Element",
"DomRect",
] }
[dev-dependencies]
env_logger = "0.11"
rand = "0.10"
[patch.crates-io]
#glamx = { path = "../glamx" }