Title: Advanced Hands-on Rust
the code relies on an obsolete version of bevy. are you considering updating the book to a more recent version of bevy?
If someone has published it, I am interested in a repo with updated with bevy 0.15
Title: Advanced Hands-on Rust
the code relies on an obsolete version of bevy. are you considering updating the book to a more recent version of bevy?
If someone has published it, I am interested in a repo with updated with bevy 0.15
The next beta release will use Bevy 0.15.1 - I’m actually updating it now.
Bevy is at “0.18.0” now.
This may be a versioning problem; If there’s a better place to post this, please let me know and I’ll skulk off quietly.
In "Advanced Hands-on Rust",
*“*self.rng.gen()” which offended the compiler by virtue of ‘gen’ being a keyword. Prepending gen with r# (self.rng.r#gen) makes ‘cargo build’ happy (I haven’t gone beyond that point yet). I’m at Rust version 1.97 ( rustc --version yields rustc 1.97.0 (2d8144b78 2026-07-07)). a) Is r# the best fix? b) is this explained anywhere other than in the compile error?
Hi! Unfortunately, Rust & rand both updated after that went out. It should be fixed here: GitHub - thebracket/AdvancedHandsOnRust: Repository for the code that goes with Advanced Hands-on Rust · GitHub (I can’t really go out and correct the printed books with a sharpie, sorry - wish I could!).
What happened was that rand previously used “gen” - and then Rust declared it a keyword (for the generator system, eventually). Newer releases of rand changed the name.
Thanks! Thay do’t call it “the bleeding edge” for nothing.
And for the benefit of any other newbie stumbling onto this problem. when someone says “update”, look for changes in Cargo.toml files. One of the reasons I’ve made the leap from everytrhing else to Rust is that previous versions of apparently everything are still available simply by naming them in Cargo.toml.