Skip to content
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

rust: Update cstr dependency #18389

Merged
merged 2 commits into from
Aug 20, 2022

Conversation

chrysn
Copy link
Member

@chrysn chrysn commented Aug 1, 2022

Contribution description

A change in Rust nightly features broke version 0.2.5 of the cstr
crate, whose nightly-only features are enabled in some examples. The
breakage was quickly fixed upstream in the 0.2.6 version, this updates
the locks.


We could (and should, to minimize this on the long run) also stop using the nightly features -- but given that riot-wrappers are about to switch over to what the standard library now provides anyway, this is the least intrusive fix.

The issue doesn't hit us now because our Rust nightly version is pinned, but it'd hit us as soon as we updated the Rust nightly version in riotdocker.

Testing procedure

  • Green CI
  • The breakage before this PR only shows when using a local Rust installation and building the rust-gcoap example with a recent nightly. (I tested that).

Issues/PRs references

Builds on #18388 (they wouldn't merge conflict if I wrote them separately, but it'd still be practically useless rebasing). Look at the second change if that is

Backporting

This only needs backporting if riotdocker updates its nightly version, and after that a point release is to be made. (Because only the automated tests use the latest riotdocker image; regular users would get the riotdocker image that was versioned together with the release AIU).

chrysn added 2 commits August 1, 2022 16:28
The riotmodules dependency was missed in bc8ec6d, and while generally
it does not severly harm builds, it does harm builds riotdocker CI where
branches are switched, which is blocked by dirty files in the checkout.

The riot-wrappers version was missed when what is now 5e75f4b was
rebased onto fdc4e11.
A change in Rust nightly features broke version 0.2.5 of the `cstr`
crate, whose nightly-only features are enabled in some examples. The
breakage was quickly fixed upstream in the 0.2.6 version, this updates
the locks.
@chrysn chrysn added Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: Rust Area: Rust wrapper labels Aug 1, 2022
@github-actions github-actions bot added Area: examples Area: Example Applications Area: sys Area: System Area: tests Area: tests and testing framework labels Aug 1, 2022
@miri64 miri64 added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Aug 1, 2022
@miri64
Copy link
Member

miri64 commented Aug 1, 2022

Requeued in Murdock queue to give 2022.07 release backport #18354 precedence.

@chrysn chrysn added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: needs backport Integration Process: The PR is required to be backported to a release or feature branch and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Aug 20, 2022
@chrysn chrysn merged commit 0a4bd3d into RIOT-OS:master Aug 20, 2022
@chrysn chrysn deleted the rust-cstr-update branch August 20, 2022 13:44
@maribu
Copy link
Member

maribu commented Aug 21, 2022

Backport provided in #18485

@maribu maribu added this to the Release 2022.10 milestone Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: examples Area: Example Applications Area: Rust Area: Rust wrapper Area: sys Area: System Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Process: needs backport Integration Process: The PR is required to be backported to a release or feature branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants