diff --git a/Cargo.toml b/Cargo.toml index 433490fc05662..5c68dd4ed68d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -126,26 +126,34 @@ unused_qualifications = "warn" [features] default = [ + "default_no_render", + "bevy_anti_aliasing", + "bevy_core_pipeline", + "bevy_gizmos", + "bevy_gltf", + "bevy_pbr", + "bevy_render", + "bevy_sprite_render", + "bevy_ui_render", +] + +# All default features except for rendering +default_no_render = [ "std", "async_executor", "android-game-activity", "android_shared_stdcxx", "animation", + "bevy_animation", "bevy_asset", "bevy_audio", "bevy_color", - "bevy_core_pipeline", "bevy_core_widgets", - "bevy_anti_aliasing", "bevy_gilrs", - "bevy_gizmos", - "bevy_gltf", "bevy_input_focus", "bevy_log", "bevy_mesh_picking_backend", - "bevy_pbr", "bevy_picking", - "bevy_render", "bevy_scene", "bevy_image", "bevy_mesh", @@ -154,12 +162,10 @@ default = [ "bevy_shader", "bevy_sprite", "bevy_sprite_picking_backend", - "bevy_sprite_render", "bevy_state", "bevy_text", "bevy_ui", "bevy_ui_picking_backend", - "bevy_ui_render", "bevy_window", "bevy_winit", "custom_cursor", diff --git a/docs/cargo_features.md b/docs/cargo_features.md index 6d65725a17a00..fbdf5b21a90f8 100644 --- a/docs/cargo_features.md +++ b/docs/cargo_features.md @@ -50,6 +50,7 @@ The default feature set enables most of the expected features of a game engine, |custom_cursor|Enable winit custom cursor support| |debug|Enable collecting debug information about systems and components to help with diagnostics| |default_font|Include a default font, containing only ASCII characters, at the cost of a 20kB binary size increase| +|default_no_render|All default features except for rendering| |hdr|HDR image format support| |ktx2|KTX2 compressed texture support| |multi_threaded|Enables multithreaded parallelism in the engine. Disabling it forces all engine tasks to run on a single thread.|