-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Fixes #72] Deal with dependencies to fix things, mostly doctests #73
Conversation
Since Rust 1.60 it's possible to enable dependencies' features only for included dependencies. That's going to work for `rt` and `critical-section` and some other features in future.
It would be nice to have a tool that extracts all basic check from workflow to be run before commit. Not working on machine I normally burn for this stuff has downsides, as I rush things...
@martinmortsell This PR makes the whole CI 🟢 with In result we're more aligned with pattern This is braking change! There are no A little scope creep: In the process I updated some dependencies and ended up with need to fix up how USB is used in the code, both doctests and examples. If you don't approve it, I can move them into another PR, and clean this one up from this change. |
I was gonna revert the I'll look through the rest in the beginning of January. |
Just revert wouldn't work. I spend quite some time to get things straight and actually build and pass all checks.
I may not have time in January to carry the burden of the next release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly fine to me, could benefit from squashing some commits, aside from the one or two minor changes I suggested.
CHANGELOG.md
Outdated
- Update `cortex-m-rt` version in examples to `0.7.3`. | ||
- Switched from AFE0_AD6 to AFE0_AD8 for the atsamv71_xult board ADC example code. | ||
- The `rt` separated to don't act as part of chip selection feature anymore. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to
- The `rt` separated to don't act as part of chip selection feature anymore. | |
- The `rt` separated to not act as part of chip selection feature anymore. |
Cargo.toml
Outdated
# In the end it doesn't work as I supposed based on `Cargo.toml` from other | ||
# projects. First, it works only at workspace level; second, it's not optional | ||
# in the sense of probing for existence. We shall consider documenting use of | ||
# https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#paths-overrides | ||
# atsame70j19b = { path = "../atsamx7x-pac/pac/atsame70j19b" } | ||
# atsame70j20b = { path = "../atsamx7x-pac/pac/atsame70j20b" } | ||
# atsame70j21b = { path = "../atsamx7x-pac/pac/atsame70j21b" } | ||
# atsame70n19b = { path = "../atsamx7x-pac/pac/atsame70n19b" } | ||
# atsame70n20b = { path = "../atsamx7x-pac/pac/atsame70n20b" } | ||
# atsame70n21b = { path = "../atsamx7x-pac/pac/atsame70n21b" } | ||
# atsame70q19b = { path = "../atsamx7x-pac/pac/atsame70q19b" } | ||
# atsame70q20b = { path = "../atsamx7x-pac/pac/atsame70q20b" } | ||
# atsame70q21b = { path = "../atsamx7x-pac/pac/atsame70q21b" } | ||
# atsams70j19b = { path = "../atsamx7x-pac/pac/atsams70j19b" } | ||
# atsams70j20b = { path = "../atsamx7x-pac/pac/atsams70j20b" } | ||
# atsams70j21b = { path = "../atsamx7x-pac/pac/atsams70j21b" } | ||
# atsams70n19b = { path = "../atsamx7x-pac/pac/atsams70n19b" } | ||
# atsams70n20b = { path = "../atsamx7x-pac/pac/atsams70n20b" } | ||
# atsams70n21b = { path = "../atsamx7x-pac/pac/atsams70n21b" } | ||
# atsams70q19b = { path = "../atsamx7x-pac/pac/atsams70q19b" } | ||
# atsams70q20b = { path = "../atsamx7x-pac/pac/atsams70q20b" } | ||
# atsams70q21b = { path = "../atsamx7x-pac/pac/atsams70q21b" } | ||
# atsamv70j19b = { path = "../atsamx7x-pac/pac/atsamv70j19b" } | ||
# atsamv70j20b = { path = "../atsamx7x-pac/pac/atsamv70j20b" } | ||
# atsamv70n19b = { path = "../atsamx7x-pac/pac/atsamv70n19b" } | ||
# atsamv70n20b = { path = "../atsamx7x-pac/pac/atsamv70n20b" } | ||
# atsamv70q19b = { path = "../atsamx7x-pac/pac/atsamv70q19b" } | ||
# atsamv70q20b = { path = "../atsamx7x-pac/pac/atsamv70q20b" } | ||
# atsamv71j19b = { path = "../atsamx7x-pac/pac/atsamv71j19b" } | ||
# atsamv71j20b = { path = "../atsamx7x-pac/pac/atsamv71j20b" } | ||
# atsamv71j21b = { path = "../atsamx7x-pac/pac/atsamv71j21b" } | ||
# atsamv71n19b = { path = "../atsamx7x-pac/pac/atsamv71n19b" } | ||
# atsamv71n20b = { path = "../atsamx7x-pac/pac/atsamv71n20b" } | ||
# atsamv71n21b = { path = "../atsamx7x-pac/pac/atsamv71n21b" } | ||
# atsamv71q19b = { path = "../atsamx7x-pac/pac/atsamv71q19b" } | ||
# atsamv71q20b = { path = "../atsamx7x-pac/pac/atsamv71q20b" } | ||
# atsamv71q21b = { path = "../atsamx7x-pac/pac/atsamv71q21b" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unclear to me what the purpose of these lines are, but if you don't have a plan for fixing it, these lines should be removed rather than commented out.
can = ["mcan-core"] | ||
|
||
device-selected = [] | ||
__v71 = ["can"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
underscores for internal features, nice.
Purpose
Since Rust 1.60 it's possible to enable dependencies' features only for included dependencies.
That's going to work for
rt
andcritical-section
and some other features in future.Scope
__
; idea stolen from another PAC/HAL project)