[dependencies.asbytes]
optional = true
version = "0.2.0"
[dependencies.browser_log]
optional = true
version = "~0.4.0"
[dependencies.derive_tools]
version = "~0.36.0"
[dependencies.error_tools]
version = "0.22.0"
[dependencies.former]
version = "~2.26.0"
[dependencies.js-sys]
features = []
optional = true
version = "0.3.77"
[dependencies.mod_interface]
version = "~0.34.0"
[dependencies.ndarray_cg]
optional = true
version = "~0.4.0"
[dependencies.tobj]
default-features = false
features = ["async"]
optional = true
version = "4.0.3"
[dependencies.wasm-bindgen]
optional = true
version = "0.2.100"
[dependencies.wasm-bindgen-futures]
optional = true
version = "0.4.50"
[dependencies.web-sys]
features = ["HtmlCanvasElement", "Window", "Document", "HtmlCollection", "CssStyleDeclaration", "HtmlElement", "RequestInit", "RequestMode", "Request", "Response", "Location", "DomTokenList", "HtmlVideoElement", "HtmlImageElement"]
optional = true
version = "0.3.77"
[dev-dependencies.test_tools]
version = "~0.16.0"
[features]
camera_orbit_controls = []
default = ["enabled", "math"]
diagnostics = ["model_obj"]
enabled = ["dep:asbytes"]
full = ["default"]
math = ["dep:ndarray_cg"]
model_obj = ["dep:tobj"]
web = ["dep:wasm-bindgen-futures", "dep:wasm-bindgen", "dep:js-sys", "dep:web-sys"]
web_file = []
web_future = []
web_log = ["dep:browser_log"]
web_model_obj = ["model_obj", "web_log", "tobj/async"]
[lib]
name = "mingl"
path = "src/lib.rs"
[lints.clippy]
absolute_paths = "allow"
allow_attributes = "allow"
allow_attributes_without_reason = "allow"
arbitrary_source_item_ordering = "allow"
else_if_without_else = "warn"
exhaustive_enums = "warn"
exhaustive_structs = "warn"
implicit_return = "warn"
inline_always = "allow"
many_single_char_names = "allow"
min_ident_chars = "warn"
missing_docs_in_private_items = "allow"
missing_inline_in_public_items = "warn"
mod_module_files = "allow"
module_name_repetitions = "allow"
pub_use = "allow"
self_named_module_files = "allow"
single_call_fn = "allow"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
undocumented_unsafe_blocks = "deny"
wildcard_imports = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
future_incompatible = "warn"
missing_docs = "warn"
unsafe-code = "warn"
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[package]
authors = ["Kostiantyn Mysnyk <wandalen@obox.systems>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["graphics", "rendering", "web-programming", "api-bindings"]
description = "Minimal graphics library with abstract rendering backend and WebGL support"
documentation = "https://docs.rs/mingl"
edition = "2021"
homepage = "https://github.com/Wandalen/cgtools/tree/master/module/min/mingl"
include = ["src/**/*", "tests/**/*", "Cargo.toml", "readme.md", "license*", "changelog*"]
keywords = ["graphics", "rendering", "webgl", "minimal", "backend"]
license = "MIT"
name = "mingl"
readme = "readme.md"
repository = "https://github.com/Wandalen/cgtools"
rust-version = "1.75.0"
version = "0.3.0"
[package.metadata.docs.rs]
all-features = true
default-target = "wasm32-unknown-unknown"
rustdoc-args = ["--cfg", "docsrs"]
targets = ["wasm32-unknown-unknown", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc", "x86_64-apple-darwin"]
[[package.metadata.release.pre-release-replacements]]
file = "readme.md"
replace = 'mingl = "{{version}}"'
search = 'mingl = "[0-9.]+"'
[[package.metadata.release.pre-release-replacements]]
file = "changelog.md"
replace = """
## Unreleased
## {{version}} - {{date}}"""
search = "## Unreleased"
[[test]]
name = "tests"
path = "tests/tests.rs"