Cargo Features

AppSurface has no features set by default.

[dependencies]
app-surface = { version = "1.3.2", features = ["webgl", "mac_catalyst", "web_rwh", "web-sys", "wasm-bindgen"] }
webgl

Enables webgl of wgpu

wgpu:

Enables the GLES backend on Wasm

* ⚠️ WIP: Currently will also enable GLES dependencies on any other targets.

mac_catalyst
web_rwh

Use Canvas / OffscreenCanvas + raw-window-handle directly on the web, no need for winit

Features from optional dependencies

web-sys implicit feature

Enables web-sys

web-sys:

Bindings for all Web APIs, a procedurally generated crate from WebIDL

wasm-bindgen implicit feature

Enables wasm-bindgen

wasm-bindgen:

Easy support for interacting between JS and Rust