Cargo Features
[dependencies]
speedy2d = { version = "2.1.0", default-features = false, features = ["windowing", "image-loading"] }
- default = image-loading, windowing
-
These default features are set whenever
speedy2d
is added without
somewhere in the dependency tree.default-features = false - windowing default = glutin
-
Affects
speedy2d::window
,speedy2d::Window
,speedy2d::WebCanvas
,web::WebPending
,web::WebEventTarget
… - image-loading default = image
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.
- image image-loading
-
Enables image ^0.23
For image_loading feature
- glutin not wasm32 windowing
-
Enables glutin ^0.28