Cargo Features

[dependencies]
theframework = { version = "0.1.33", default-features = false, features = ["ui", "code", "winit_app", "gpu", "gpu_winit"] }
default = gpu_winit

The gpu_winit feature is set by default whenever theframework is added without default-features = false somewhere in the dependency tree.

ui = flate2, futures, rayon, rfd, zeno

Affects theframework::theui, theapp::TheApp.ui, thecontext::TheContext.ui, thetrait::TheTrait.init_ui, thetrait::TheTrait.update_ui, thetrait::TheTrait.post_ui, thetrait::TheTrait.pre_ui

code

Affects theframework::thecode, thelayout::thecodelayout, thelayout::TheLayout.as_code_layout, thewidget::thecodeview, thewidget::TheWidget.as_code_view

winit_app gpu_winit = winit, winit_input_helper
gpu gpu_winit = aict, bytemuck, futures, itertools, wgpu

Affects theframework::thegpu

gpu_winit default = gpu, winit_app

Affects thecontext::TheContext.gpu, thecontext::TheContext.texture_renderer

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.

winit winit_app?

Enables winit ^0.29

winit_input_helper winit_app?
rfd ui?

Enables rfd ^0.13

futures gpu? ui?
flate2 ui?
rayon ui?
zeno ui?
wgpu gpu?

Enables wgpu ^22.1

aict gpu?
bytemuck gpu?
itertools gpu?

Enables itertools ^0.13.0