-
Notifications
You must be signed in to change notification settings - Fork 156
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
Consider using Cargo's links
feature to ensure use only once
#137
Comments
And how do I deal with this issue now? I've have dependency on
looking at
(of course I can edit |
@little-arhat this issue is a little different than what you are reporting, but I have run into this too. I have had problems where despite the >=5.8,<0.7 stuff, cargo decided to pick cortex-m 0.5.8 AND 0.6. I manually edited the Cargo.lock and it was happy, but this doesn't seem optimal. I even selected I "fixed" this locally by editing:
to
Which seemed to work after a rebuild (and mentions of |
@jamesmunns thanks, that what I did as well, doesn't look pretty, indeed. I guess |
140: Cargo.toml: Add `links = "cortex-m"` r=therealprof a=jonas-schievink This prevents linking multiple versions of `cortex-m` together, which would be unsound. Currently it uses a `#[no_mangle]` static for this, which isn't always reliable. Fixes #137 Co-authored-by: Jonas Schievink <[email protected]>
@jamesmunns I've created cargo issue for this, btw: rust-lang/cargo#6876 |
BTW links dose efact the resolver rust-lang/cargo#4978 |
140: Cargo.toml: Add `links = "cortex-m"` r=therealprof a=jonas-schievink This prevents linking multiple versions of `cortex-m` together, which would be unsound. Currently it uses a `#[no_mangle]` static for this, which isn't always reliable. Fixes #137 Co-authored-by: Jonas Schievink <[email protected]>
146: Mention interrupt attribute in main crate docs r=korken89 a=birkenfeld Fixes #137 Co-authored-by: Georg Brandl <[email protected]>
Currently cortex-m uses an unmangled variable to prevent multiple crates being linked in that redefine CORE_PERIPHERALS.
Cargo now has a feature called
links
that addresses this.The text was updated successfully, but these errors were encountered: