Advanced Hands-on Rust: workspace inheritance not set up in tutorial (page 9)

Page 9 has the reader set up hello_bevy/Cargo.toml to inherit the workspace bevy dependency with:

bevy = { workspace = true }

However, there were no previous instructions to add a bevy dependency in the workspace so running the app fails with:

error inheriting `bevy` from workspace root manifest's `workspace.dependencies.bevy

There needs to be an earlier step to define a dependency in more_hands/Cargo.toml similar to:

[workspace.dependencies]
bevy = { version = "0.16.0", features = ["wayland"] }
3 Likes

To add, it does actually mention Bevy version on page 11 as an example for adding the Wayland dependency (but, as mentioned by dyozie, never actually instructs to add it to the worspace), but uses the 0.15.1 version there (while preface states that book is based on the `0.16`)