Remove render feature group (#6912)

# Objective

The feature doesn't have any use case in libraries or applications and many users use this feature incorrectly. See the issue for details.
Closes #5753.

## Solution

Remove it.

---

## Changelog

### Removed

- `render` feature group. 

## Migration Guide

Instead of using `render` feature group use dependencies directly. This group consisted of `bevy_core_pipeline`, `bevy_pbr`, `bevy_gltf`, `bevy_render`, `bevy_sprite`, `bevy_text` and `bevy_ui`. You probably want to check if you need all of them.
This commit is contained in:
Hennadii Chernyshchyk 2022-12-11 18:46:46 +00:00
parent 36691769ba
commit 544776831d
2 changed files with 12 additions and 13 deletions

View file

@ -32,7 +32,13 @@ default = [
"bevy_gilrs", "bevy_gilrs",
"bevy_scene", "bevy_scene",
"bevy_winit", "bevy_winit",
"render", "bevy_core_pipeline",
"bevy_pbr",
"bevy_gltf",
"bevy_render",
"bevy_sprite",
"bevy_text",
"bevy_ui",
"png", "png",
"hdr", "hdr",
"vorbis", "vorbis",
@ -43,17 +49,6 @@ default = [
# Force dynamic linking, which improves iterative compile times # Force dynamic linking, which improves iterative compile times
dynamic = ["bevy_dylib"] dynamic = ["bevy_dylib"]
# Rendering support
render = [
"bevy_internal/bevy_core_pipeline",
"bevy_internal/bevy_pbr",
"bevy_internal/bevy_gltf",
"bevy_internal/bevy_render",
"bevy_internal/bevy_sprite",
"bevy_internal/bevy_text",
"bevy_internal/bevy_ui",
]
# Optional bevy crates # Optional bevy crates
bevy_animation = ["bevy_internal/bevy_animation"] bevy_animation = ["bevy_internal/bevy_animation"]
bevy_asset = ["bevy_internal/bevy_asset"] bevy_asset = ["bevy_internal/bevy_asset"]

View file

@ -14,7 +14,11 @@ crate-type = ["staticlib"]
bevy = { path = "../../", features = [ bevy = { path = "../../", features = [
"bevy_audio", "bevy_audio",
"bevy_winit", "bevy_winit",
"render", "bevy_core_pipeline",
"bevy_pbr",
"bevy_render",
"bevy_text",
"bevy_ui",
"vorbis", "vorbis",
"filesystem_watcher" "filesystem_watcher"
], default-features = false} ], default-features = false}