Cargo Features

[dependencies]
chuot = { version = "0.3.0", default-features = false, features = ["embed-assets", "read-texture"] }
default = read-texture

The read-texture feature is set by default whenever chuot is added without default-features = false somewhere in the dependency tree.

embed-assets

Process and embed all assets into the binary for producing an optimized single binary.

This is the only way to load "external" assets when building for the web.

Enables imgref, embed-assets of chuot-macros

read-texture default

Keep the texture data in memory so the pixel data can be retrieved.

If disabled some texture functionality is not available because all textures are uploaded to the GPU and then removed from memory.