Cargo Features
[dependencies]
awsm = { version = "0.0.11", default-features = false, features = ["engine", "core", "data", "audio", "image", "video", "canvas", "input", "loaders", "tick", "window", "webgl"] }
- default = core
-
The
core
feature is set by default wheneverawsm
is added without
somewhere in the dependency tree.default-features = false - engine
-
Engine
- core default = audio, canvas, data, image, input, loaders, tick, video, webgl, window
-
Core
- data core loaders?
-
Affects
core::data
… - audio core
-
Enables AudioBuffer, AudioBufferOptions, AudioBufferSourceNode, AudioBufferSourceOptions, AudioContext, AudioContextOptions, AudioDestinationNode, AudioNode and Event of web-sys
Affects
core::audio
… - image core webgl?
-
Enables HtmlImageElement, ImageBitmap and ImageData of web-sys
- video core webgl?
-
Enables HtmlVideoElement of web-sys
- canvas core webgl?
-
Enables CanvasRenderingContext2d and HtmlCanvasElement of web-sys
Affects
core::canvas
… - input core
-
Enables Document, Element, Event, EventTarget and MouseEvent of web-sys
Affects
core::input
… - loaders core = data, futures-preview, wasm-bindgen-futures, window
-
Enables Blob, BlobPropertyBag, HtmlElement, Location, Request, RequestInit, Response, ResponseInit and Url of web-sys
Affects
core::loaders
… - tick core = window
-
Affects
core::tick
… - window core loaders? tick?
-
Affects
core::window
… - webgl core = beach_map, canvas, image, rustc-hash, serde, serde-wasm-bindgen, video
-
Enables AngleInstancedArrays, OesVertexArrayObject, WebGl2RenderingContext, WebGlActiveInfo, WebGlBuffer, WebGlProgram, WebGlRenderingContext, WebGlShader, WebGlTexture, WebGlUniformLocation and WebGlVertexArrayObject of web-sys
Affects
core::webgl
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- rustc-hash webgl?
-
Enables rustc-hash ^1.0.1
- serde webgl?
- futures-preview loaders?
-
Enables futures-preview =0.3.0-alpha.16
- beach_map webgl?
-
Enables beach_map ^0.1.2
- wasm-bindgen-futures loaders?
-
Enables wasm-bindgen-futures ^0.3.25
- serde-wasm-bindgen webgl?
-
Enables serde-wasm-bindgen ^0.1.3