[package] name = "mugl" version = "0.1.2" edition = "2021" authors = ["Andy K. S. Wong "] license = "MIT" readme = "README.md" repository = "https://github.com/andykswong/muge" homepage = "https://github.com/andykswong/muge/tree/main/crates/mugl" documentation = "https://docs.rs/mugl" description = "Minimalistic Low-level WebGL 2.0 / WebGPU 3D graphics abstraction layer for Rust and WebAssembly" categories = ["graphics", "no-std", "rendering", "rendering::graphics-api", "wasm"] keywords = ["3d", "javascript", "webgl", "webgpu", "muge"] [package.metadata.docs.rs] features = ["std", "serde", "backend-wgpu", "backend-webgl"] [features] default = [] std = ["wasm-bindgen?/std"] backend-wgpu = ["raw-window-handle", "std", "wgpu"] backend-webgl = [] [dependencies] async-trait = "0.1" cfg-if = "1.0" bitflags = "1.3" serde = { version = "1.0", optional = true, default-features = false, features = ["derive"] } serde_repr = "0.1" raw-window-handle = { version = "0.4", optional = true, features = ["alloc"] } wgpu = { version = "0.12", optional = true } wasm-bindgen = { version = "0.2", optional = true, default-features = false } [dev-dependencies] munum = { path = "../munum", version = "0.1" } bytemuck = { version = "1.9", features = [ "derive" ] } env_logger = "0.9" image = { version = "0.24", default-features = false, features = ["png"] } log = "0.4" wee_alloc = { version = "0.4" } winit = "0.26" [target.'cfg(not(target_family = "wasm"))'.dev-dependencies] pollster = "0.2" [target.'cfg(target_family = "wasm")'.dev-dependencies] [profile.release] opt-level = "z" lto = true strip = true panic = "abort" codegen-units = 1 [[example]] name = "wasm" crate-type = ["cdylib"] required-features = ["backend-webgl"]