# 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 = "2024"
name = "glemu"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WebGL (via web_sys) to GL shims for Rust, based on Emscripten's GL emulation layer"
readme = "README.md"
keywords = [
    "wasm",
    "webgl",
    "opengl",
    "skia",
]
categories = [
    "wasm",
    "rendering",
]
license = "MIT"
repository = "https://github.com/lumiscia/glemu"

[features]
api = []
default = [
    "api",
    "raw-proc",
    "image-data",
    "dom-uploads",
]
dom-uploads = [
    "api",
    "web-sys/HtmlCanvasElement",
    "web-sys/HtmlImageElement",
    "web-sys/HtmlVideoElement",
    "web-sys/ImageBitmap",
]
image-data = [
    "api",
    "web-sys/ImageData",
]
raw-proc = []
video-frame = [
    "api",
    "web-sys/VideoFrame",
]

[lib]
name = "glemu"
path = "src/lib.rs"

[dependencies.js-sys]
version = "0.3"

[dependencies.wasm-bindgen]
version = "0.2"

[dependencies.web-sys]
version = "0.3"
features = [
    "WebGl2RenderingContext",
    "WebGlBuffer",
    "WebGlFramebuffer",
    "WebGlProgram",
    "WebGlQuery",
    "WebGlRenderbuffer",
    "WebGlSampler",
    "WebGlShader",
    "WebGlSync",
    "WebGlTexture",
    "WebGlTransformFeedback",
    "WebGlUniformLocation",
    "WebGlVertexArrayObject",
]

[dev-dependencies.wasm-bindgen-test]
version = "0.3"
