Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Shows wrong versions and error in Cargo.toml for platform specific dependencies #145

Open
RogueMacro opened this issue Aug 9, 2021 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@RogueMacro
Copy link

RogueMacro commented Aug 9, 2021

Description
I ran into this issue when following a tutorial on gfx-hal, where I need a different backend crate for vulkan, metal, etc.

To Reproduce
Here is an example of the syntax I use:

[target.'cfg(target_os = "macos")'.dependencies.backend]
package = "gfx-backend-metal"
version = "0.9.1"

Expected behavior
I would expect it to approve this, since this is the latest version and it compiles fine.

Screenshots
image

Operating System:

  • OS: Windows 10
  • Version 21H1

Cause of bug
The reason this fails is because it looks for the crate 'backend' from [target.'cfg(target_os = "macos")'.dependencies.backend] instead of the package field. Which I confirmed because the 'backend' crate actually has the versions the crates extensions suggested to me.

@serayuzgur serayuzgur self-assigned this Jan 3, 2022
@serayuzgur serayuzgur added the bug Something isn't working label Jan 3, 2022
@serayuzgur serayuzgur added this to the 0.5.11 milestone Jan 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants