jspiro

jspiro

Hands-on Rust: toml formatting / cargo build issue (page 18)

If you copy/paste the second TOML snipped with features, there are two issues:

  1. It’s presented as multi-line, but TOML doesn’t support multi-line inline tables. You could show it as:
[dependencies.bracket-lib]
git = "https://github.com/thebracket/bracket-lib"
default-features = false
features = ["amethyst_engine_vulkan"]
  1. cargo run doesn’t like this:
error: failed to select a version for `bracket-lib`.
versions that meet the requirements `*` are: 0.8.2

the package `testrust` depends on `bracket-lib`, with features: `amethyst_engine_vulkan` but `bracket-lib` does not have these features.

failed to select a version for `bracket-lib` which could resolve this conflict

First Post!

herbert

herbert

Author of Hands-on Rust

Hi! Sorry for the delay - I only just saw this one. I think specifying “version = 0.8.2” for bracket-lib should make it run, but there’s a caveat. Amethyst have discontinued development on Amethyst, so the next bracket-lib version will support wgpu instead. When it’s finalized, I’ll be sure to announce it widely.

Where Next?

Popular Pragmatic Bookshelf topics Top

New
Chrichton
Dear Sophie. I tried to do the “Authorization” exercise and have two questions: When trying to plug in an email-service, I found the ...
New
swlaschin
The book has the same “Problem space/Solution space” diagram on page 18 as is on page 17. The correct Problem/Solution space diagrams ar...
New
brian-m-ops
#book-python-testing-with-pytest-second-edition Hi. Thanks for writing the book. I am just learning so this might just of been an issue ...
New
leonW
I ran this command after installing the sample application: $ cards add do something --owner Brian And got a file not found error: Fil...
New
taguniversalmachine
It seems the second code snippet is missing the code to set the current_user: current_user: Accounts.get_user_by_session_token(session["...
New
andreheijstek
After running /bin/setup, the first error was: The foreman' command exists in these Ruby versions: That was easy to fix: gem install fore...
New
New
dachristenson
I just bought this book to learn about Android development, and I’m already running into a major issue in Ch. 1, p. 20: “Update activity...
New
dachristenson
@mfazio23 Android Studio will not accept anything I do when trying to use the Transformations class, as described on pp. 140-141. Googl...
New

Other popular topics Top

ohm
Which, if any, games do you play? On what platform? I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
New
New
Rainer
Not sure if following fits exactly this thread, or if we should have a hobby thread… For many years I’m designing and building model air...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
PragmaticBookshelf
“A Mystical Experience” Hero’s Journey with Paolo Perrotta @nusco Ever wonder how authoring books compares to writing articles?...
New
AstonJ
We’ve talked about his book briefly here but it is quickly becoming obsolete - so he’s decided to create a series of 7 podcasts, the firs...
New
PragmaticBookshelf
Build efficient applications that exploit the unique benefits of a pure functional language, learning from an engineer who uses Haskell t...
New
New
PragmaticBookshelf
Author Spotlight: Sophie DeBenedetto @SophieDeBenedetto The days of the traditional request-response web application are long gone, b...
New
New

Sub Categories: