# The backdrop engine (docs/backgrounds.md): Rust compiled to WebAssembly, # drawing with WebGL2. A workspace of its own, outside the hub's, so the hub # build and its offline CI never need the wasm toolchain: `make backdrop` # builds it and writes assets/backdrop/, which the hub embeds. [package] name = "backdrop" version = "0.1.0" edition = "2021" license = "MIT" publish = false [lib] crate-type = ["cdylib", "rlib"] [dependencies] wasm-bindgen = "0.2" js-sys = "0.3" [dependencies.web-sys] version = "0.3" features = [ "CssStyleDeclaration", "Document", "DomRect", "Element", "Event", "EventTarget", "HtmlCanvasElement", "HtmlElement", "MediaQueryList", "MouseEvent", "Performance", "WebGl2RenderingContext", "WebGlBuffer", "WebGlProgram", "WebGlShader", "WebGlUniformLocation", "WebGlVertexArrayObject", "Window", ] [profile.release] opt-level = "z" lto = true codegen-units = 1 panic = "abort" [workspace]