Skip to content

Commit

Permalink
Remove render feature group (#6912)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
Shatur committed Dec 11, 2022
1 parent 3669176 commit 5447768
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
19 changes: 7 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ default = [
"bevy_gilrs",
"bevy_scene",
"bevy_winit",
"render",
"bevy_core_pipeline",
"bevy_pbr",
"bevy_gltf",
"bevy_render",
"bevy_sprite",
"bevy_text",
"bevy_ui",
"png",
"hdr",
"vorbis",
Expand All @@ -43,17 +49,6 @@ default = [
# Force dynamic linking, which improves iterative compile times
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
bevy_animation = ["bevy_internal/bevy_animation"]
bevy_asset = ["bevy_internal/bevy_asset"]
Expand Down
6 changes: 5 additions & 1 deletion examples/ios/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ crate-type = ["staticlib"]
bevy = { path = "../../", features = [
"bevy_audio",
"bevy_winit",
"render",
"bevy_core_pipeline",
"bevy_pbr",
"bevy_render",
"bevy_text",
"bevy_ui",
"vorbis",
"filesystem_watcher"
], default-features = false}

0 comments on commit 5447768

Please sign in to comment.