Skip to content

Dependency issues #3

@sakgoyal

Description

@sakgoyal

Is there something I can do to fix the dependency errors I am getting? Im assuming a lot has changed in rust over the past 2 years so the packages have changed.

warning: C:\Users\xxx\Documents\xxx\riskeyboard70\Cargo.toml: the cargo feature `resolver` has been stabilized in the 1.51 release and is no longer necessary to be listed in the manifest
  See https://doc.rust-lang.org/nightly/cargo/reference/resolver.html#resolver-versions for more information about using this feature.
    Updating crates.io index
    Updating git repository `https://github.com/jkristell/infrared.git`
    Updating git repository `https://github.com/riskable/keyberon`
error: failed to select a version for `cortex-m-rt`.
    ... required by package `riskeyboard70 v0.1.0 (C:\Users\xxx\Documents\xxx\riskeyboard70)`
versions that meet the requirements `^0.7` are: 0.7.3, 0.7.0

the package `cortex-m-rt` links to the native library `cortex-m-rt`, but it conflicts with a previous package which links to `cortex-m-rt` as well:
package `cortex-m-rt v0.6.15`
    ... which satisfies dependency `cortex-m-rt = "^0.6.10"` of package `stm32f4 v0.13.0`
    ... which satisfies dependency `stm32f4 = "^0.13"` of package `stm32f4xx-hal v0.9.0`
    ... which satisfies dependency `stm32f4xx-hal = "^0.9"` of package `riskeyboard70 v0.1.0 (C:\Users\xxx\Documents\xxx\riskeyboard70)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='cortex-m-rt' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `cortex-m-rt` which could resolve this conflict

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions