Skip to content

Conversation

@radiantgurl
Copy link

@radiantgurl radiantgurl commented Sep 27, 2025

Objective

Fixes some issues related to #20975

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `bevy_app`
 --> examples/app/custom_subapp.rs:3:17
  |
3 | #[derive(Clone, AppLabel)]
  |                 ^^^^^^^^ use of unresolved module or unlinked crate `bevy_app`
  |
  = help: if you wanted to use a crate named `bevy_app`, use `cargo add bevy_app` to add it to your `Cargo.toml`
  = note: this error originates in the derive macro `AppLabel` (in Nightly builds, run with -Z macro-backtrace for more info)

Solution

Modify Cargo.toml and also add a new example.

Testing

cargo run --example custom_subapp

Works as intended.

@radiantgurl radiantgurl changed the title Fix AppLabel not being found for making examples. Add a custom SubApp… Add Custom SubApp example Sep 27, 2025
@alice-i-cecile alice-i-cecile added C-Examples An addition or correction to our examples A-App Bevy apps and plugins X-Contentious There are nontrivial implications that should be thought through S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 28, 2025
@radiantgurl
Copy link
Author

May i ask why is it marked as contentious? It is just an example addition and adding AppLabel to the crate prelude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-App Bevy apps and plugins C-Examples An addition or correction to our examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward X-Contentious There are nontrivial implications that should be thought through

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants