RichoDemus / bevy-console

MIT License
285 stars 63 forks source link

Couldn't satisfy dependencies of my project with bevy-console = "0.4.0" #35

Closed xxxxxion closed 1 year ago

xxxxxion commented 1 year ago

Hello, I've recently tried to add bevy-console to my Cargo.toml , and then i've go an error message : bug_bev

I find out, that if i add bevy with disabled default-features : bevy = { version = "0.9.0", default-features = false } It let me build, but anyway of course it fails to build. Could you suggest something ?

Also this is whole Cargo.toml file: image

makspll commented 1 year ago

bevy_console 0.4 depends on bevy 0.8. The error is telling you that cargo cannot reconcile the two versions of bevy, (rather a dependency of bevy) at once.

support for bevy 0.9 only exists on the main branch of this crate so far, a release hasn't been made yet. What you could do is use: bevy_console = { git="https://github.com/RichoDemus/bevy-console" } in your cargo file for now. With the caveat of not being able to publish to crates.io

I am not sure why disabling default features helps here, perhaps this disables the conflicting deps. Does this help?

EDIT: fixed Cargo.toml example

xxxxxion commented 1 year ago

Yes, that helped me. My bad, i saw Cargo.toml at main branch and saw that it deps on bevy=0.9.

Also you made typo - you mean bevy_console = { git = "...

makspll commented 1 year ago

No problem at all, ah yes thank you!