Cargo Features

[dependencies]
shura = { version = "0.6.0", default-features = false, features = ["animation", "gamepad", "text", "audio", "physics", "gui", "log", "serde"] }
default = animation, audio, gamepad, gui, log, physics, serde, text

These default features are set whenever shura is added without default-features = false somewhere in the dependency tree.

animation default

Affects shura::animation

gamepad default

Enables gilrs ^0.10

Affects input::GamepadButton, input::GamepadStick, shura::gamepad

text default

Enables glyph_brush

Affects gpu::WgpuBase.text_pipeline, graphics::text, shura::text

audio default

Enables rodio ^0.17

Affects shura::audio, context::Context.audio, shura::Shura.audio

physics default

Enables rapier2d ^0.17, physics of shura_proc

Affects component_derive::ComponentController.collision, shura::physics, context::Context.world, scene::Scene.world

gui default

Enables egui ^0.22, egui-wgpu ^0.22, and egui-winit ^0.22

Affects graphics::gui, shura::gui, context::Context.gui, shura::Shura.gui

log default

Enables log

Affects shura::log, shura::ShuraConfig.logger

serde default

Enables bincode, serde, replay, serde and trace of wgpu ^0.16, serde of winit ^0.28, serde-serialize of nalgebra ^0.32, optional gilrs ^0.10, and optional rapier2d ^0.17 and serde of optional egui ^0.22

egui:

Allow serialization using serde.

Affects data::arena_serde, scene::scene_serde