# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "mugl" version = "0.1.2" authors = ["Andy K. S. Wong "] description = "Minimalistic Low-level WebGL 2.0 / WebGPU 3D graphics abstraction layer for Rust and WebAssembly" homepage = "https://github.com/andykswong/muge/tree/main/crates/mugl" documentation = "https://docs.rs/mugl" readme = "README.md" keywords = [ "3d", "javascript", "webgl", "webgpu", "muge", ] categories = [ "graphics", "no-std", "rendering", "rendering::graphics-api", "wasm", ] license = "MIT" repository = "https://github.com/andykswong/muge" resolver = "2" [package.metadata.docs.rs] features = [ "std", "serde", "backend-wgpu", "backend-webgl", ] [profile.release] opt-level = "z" lto = true codegen-units = 1 panic = "abort" strip = true [[example]] name = "wasm" crate-type = ["cdylib"] required-features = ["backend-webgl"] [dependencies.async-trait] version = "0.1" [dependencies.bitflags] version = "1.3" [dependencies.cfg-if] version = "1.0" [dependencies.raw-window-handle] version = "0.4" features = ["alloc"] optional = true [dependencies.serde] version = "1.0" features = ["derive"] optional = true default-features = false [dependencies.serde_repr] version = "0.1" [dependencies.wasm-bindgen] version = "0.2" optional = true default-features = false [dependencies.wgpu] version = "0.12" optional = true [dev-dependencies.bytemuck] version = "1.9" features = ["derive"] [dev-dependencies.env_logger] version = "0.9" [dev-dependencies.image] version = "0.24" features = ["png"] default-features = false [dev-dependencies.log] version = "0.4" [dev-dependencies.munum] version = "0.1" [dev-dependencies.wee_alloc] version = "0.4" [dev-dependencies.winit] version = "0.26" [features] backend-webgl = [] backend-wgpu = [ "raw-window-handle", "std", "wgpu", ] default = [] std = ["wasm-bindgen?/std"] [target."cfg(not(target_family = \"wasm\"))".dev-dependencies.pollster] version = "0.2" [target."cfg(target_family = \"wasm\")".dev-dependencies]