OXYGENHUB
◆ diffusion-pin-bookmark oxygenhub / crates / backdrop / Cargo.toml
991 B · last changed feat(web): Backdrops, the engine in Rust and WASM, and the dashboard's Your sky (refs #157) 22 days ago source blame history raw
17ca6cdd Andy McCall ↶ 1
# The backdrop engine (docs/backgrounds.md): Rust compiled to WebAssembly,
2
# drawing with WebGL2. A workspace of its own, outside the hub's, so the hub
3
# build and its offline CI never need the wasm toolchain: `make backdrop`
4
# builds it and writes assets/backdrop/, which the hub embeds.
5
[package]
6
name = "backdrop"
7
version = "0.1.0"
8
edition = "2021"
9
license = "MIT"
10
publish = false
11
12
[lib]
13
crate-type = ["cdylib", "rlib"]
14
15
[dependencies]
16
wasm-bindgen = "0.2"
17
js-sys = "0.3"
18
19
[dependencies.web-sys]
20
version = "0.3"
21
features = [
22
    "CssStyleDeclaration",
23
    "Document",
24
    "DomRect",
25
    "Element",
26
    "Event",
27
    "EventTarget",
28
    "HtmlCanvasElement",
29
    "HtmlElement",
30
    "MediaQueryList",
31
    "MouseEvent",
32
    "Performance",
33
    "WebGl2RenderingContext",
34
    "WebGlBuffer",
35
    "WebGlProgram",
36
    "WebGlShader",
37
    "WebGlUniformLocation",
38
    "WebGlVertexArrayObject",
39
    "Window",
40
]
41
42
[profile.release]
43
opt-level = "z"
44
lto = true
45
codegen-units = 1
46
panic = "abort"
47
48
[workspace]