[package]
edition = "2021"
name = "xgl"
version = "0.2.2"
authors = ["Daniel Mueller <deso@posteo.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Unified minimalist OpenGL 3.3 & WebGL abstractions.
"""
documentation = "https://docs.rs/xgl"
readme = "README.md"
keywords = [
"gamedev",
"gl",
"graphics",
"opengl",
]
categories = [
"external-ffi-bindings",
"graphics",
"rendering::graphics-api",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/d-e-s-o/xgl.git"
[lib]
name = "xgl"
path = "src/lib.rs"
[dependencies.anyhow]
version = "1.0"
[dev-dependencies.glutin]
version = "0.32"
features = [
"glx",
"x11",
]
default-features = false
[dev-dependencies.test-fork]
version = "0.1"
[dev-dependencies.winit]
version = "0.30"
features = [
"rwh_06",
"x11",
]
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
features = ["std"]
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
"WebGl2RenderingContext",
"WebGlBuffer",
"WebGlFramebuffer",
"WebGlProgram",
"WebGlShader",
"WebGlTexture",
"WebGlUniformLocation",
"WebGlVertexArrayObject",
]
default-features = false
[lints.clippy]
absolute-paths = "warn"
allow-attributes = "warn"
clone-on-ref-ptr = "warn"
collapsible-else-if = "allow"
collapsible-if = "allow"
dbg-macro = "warn"
derive-partial-eq-without-eq = "warn"
diverging-sub-expression = "allow"
doc-markdown = "warn"
join-absolute-paths = "warn"
large-enum-variant = "warn"
let-and-return = "allow"
let-unit-value = "allow"
module-inception = "allow"
multiple-unsafe-ops-per-block = "warn"
redundant-closure-for-method-calls = "warn"
too_many_arguments = "allow"
type-complexity = "allow"
unchecked-time-subtraction = "warn"
undocumented-unsafe-blocks = "warn"
uninlined-format-args = "warn"
use-self = "warn"
wildcard-imports = "warn"
[lints.rust]
deprecated-safe = "warn"
future-incompatible = "warn"
keyword-idents = "warn"
let-underscore = "warn"
missing-debug-implementations = "warn"
trivial-numeric-casts = "warn"
unsafe-op-in-unsafe-fn = "warn"
unused = "warn"