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
|
[package]
name = "teleia"
version = "0.1.0"
authors = ["LLLL Colonq <llll@colonq.computer>"]
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[profile.release]
opt-level = 2
codegen-units = 1
[profile.dev.package."*"]
opt-level = 2
[dependencies]
winit = "*" # windowing and events
glow = {version = "*", features = []} # rendering
tobj = "*" # model loader
# gltf = {version = "*", features = ["extras", "names"]} # model loader
image = "*" # texture loader
glam = "*" # linear algebra
log = "*" # logging
rand = {version = "*", features = ["small_rng"]} # rng
getrandom = {version = "*", features = ["js"]} # rng in the browser
serde = {version = "*", features = ["derive"]} # serialization
console_log = "*" # log to browser console
console_error_panic_hook = "*" # log to browser console on panic
tracing-wasm = "*" # trace performance in browser
wasm-bindgen = "*" # interface with javascript
wasm-bindgen-futures = "*" # interface with async javascript
js-sys = "*" # browser APIs to interact with JS runtime (e.g. run WASM)
[dependencies.web-sys] # common browser APIs
version = "*"
features = [
"Document",
"Window",
"Element",
"HtmlCanvasElement",
"WebGl2RenderingContext",
"Headers",
"Request",
"RequestInit",
"RequestMode",
"Response",
"Performance",
"PerformanceTiming",
"AudioContext",
"AudioNode",
"AudioDestinationNode",
"AudioBuffer",
"AudioBufferSourceNode",
]
|