-
I'm having trouble building bevy main with bevy_webgl2 in Cargo workspace. Somehow, the dependencies change to include I have a binary project with the following Cargo.toml: [package]
name = "test"
version = "0.1.0"
edition = "2021"
[dependencies]
bevy = { git = "https://github.com/bevyengine/bevy.git", default-features = false }
bevy_webgl2 = { git = "https://github.com/billyb2/bevy_webgl2.git" } and an empty main function. The layout is:
This will compile when I run However, if I move the [workspace]
members = ["test"] with layout:
and then run
Using cargo tree, I've determined that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
One thing with workspaces is that they still seem to have resolver v1 as their default. I've seen other issues using Bevy main get fixed by adding |
Beta Was this translation helpful? Give feedback.
One thing with workspaces is that they still seem to have resolver v1 as their default. I've seen other issues using Bevy main get fixed by adding
resolver = "2"
to the workspaceCargo.toml
. Does that help here?