Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bevy support doesn't appear to be usable #324

Open
chris-janidlo opened this issue Dec 15, 2022 · 4 comments
Open

Bevy support doesn't appear to be usable #324

chris-janidlo opened this issue Dec 15, 2022 · 4 comments

Comments

@chris-janidlo
Copy link

I'm new to rust, so I might be missing something, but it appears that there isn't any way to install the bevy plugin, at least through cargo.toml. The bracket-bevy crate doesn't seem to have been uploaded to crates.io:

$ cargo add bracket-bevy
    Updating crates.io index
error: the crate `bracket-bevy` could not be found in registry index.

and the bevy feature in bracket-lib appears to be broken due to asking for the bevy feature from bracket-geometry, which doesn't exist:

[dependencies]
bevy = "0.9.1"
bracket-lib = { version = "0.8.7", features = ["bevy"] }
$ cargo run
    Blocking waiting for file lock on package cache
    Updating crates.io index
error: failed to select a version for `bracket-geometry`.
    ... required by package `bracket-lib v0.8.7`
    ... which satisfies dependency `bracket-lib = "^0.8.7"` of package `<>`
versions that meet the requirements `~0.8` are: 0.8.7, 0.8.3, 0.8.2, 0.8.1, 0.8.0

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


all possible versions conflict with previously selected packages.

  previously selected package `bevy v0.9.1`
    ... which satisfies dependency `bevy = "^0.9.1"` of package `<>`

failed to select a version for `bracket-geometry` which could resolve this conflict
@nwilson314
Copy link

nwilson314 commented Dec 29, 2022

I'm also fairly new to Rust/Cargo so I don't necessarily have a good answer for why but removing your dependency for bevy = "0.9.1" should solve your issue. My guess is that the bracket-bevy crate only has a dependency for bevy = "0.9" and pinning it to bevy = "0.9.1" is too restrictive.

EDIT: The actual issue is that the main branch of bracket-lib specifies bevy v0.9 however, the bracket-lib that was published has bevy v0.8. If you specify your dependency instead as bracket-lib = { git = "https://github.com/amethyst/bracket-lib", features=["bevy"] }, you can use the version that is in the main branch. Not sure if this is necessarily stable though, but cargo build works.

@thebracket
Copy link
Collaborator

thebracket commented Dec 29, 2022 via email

@sbaranov
Copy link

sbaranov commented Feb 9, 2023

It looks like bracket-lib.features = ["bevy"] is broken.

But here's what works as of right now:

[dependencies]
bevy = { version = "0.9.1" }
bracket-bevy = { git = "https://github.com/amethyst/bracket-lib" }

@IAmSegfault
Copy link

I have this mostly working now on 0.11.0, just waiting on a pull request. There are a couple of rare stability bugs I detailed that need to get ironed out first however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants