Skip to content

Conversation

benpicco
Copy link
Contributor

@benpicco benpicco commented Apr 22, 2022

Contribution description

Casting payload to (uint8_t *) or (void *) is really annoying and unnecessary.

Testing procedure

No change in code output or on the caller side, just more convenient interface.

Issues/PRs references

@benpicco benpicco added the Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer label Apr 22, 2022
@github-actions github-actions bot added Area: CoAP Area: Constrained Application Protocol implementations Area: network Area: Networking Area: sys Area: System labels Apr 22, 2022
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Apr 22, 2022
@benpicco benpicco requested review from maribu and fjmolinas April 22, 2022 17:00
@benpicco benpicco added the Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation label Apr 22, 2022
@benpicco
Copy link
Contributor Author

Urgh, so while this is a non-breaking change for C code, it breaks the Rust wrappers - how can this be resolved @chrysn

@benpicco benpicco requested a review from chrysn April 23, 2022 08:25
@fjmolinas fjmolinas added the Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. label Apr 25, 2022
@github-actions github-actions bot added the Area: examples Area: Example Applications label Apr 30, 2022
@benpicco benpicco added the State: waiting for other PR State: The PR requires another PR to be merged first label May 2, 2022
chrysn added a commit to chrysn-pull-requests/RIOT that referenced this pull request May 3, 2022
Updating to riot-sys 0.7.7 enables support for more recent C2Rust
versions, and to riot-wrappers 0.7.22 unblocks [17990].

[17990]: RIOT-OS#17990
@benpicco benpicco removed the State: waiting for other PR State: The PR requires another PR to be merged first label May 3, 2022
@github-actions github-actions bot removed the Area: examples Area: Example Applications label May 3, 2022
@benpicco benpicco 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 May 3, 2022
Copy link
Member

@maribu maribu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. This is a very sensible API change that should go unnoticed for the C callers and the Rust wrappers have apparently been updated.

@maribu maribu enabled auto-merge May 10, 2022 08:48
@maribu maribu removed the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label May 10, 2022
@maribu maribu merged commit 3dad674 into RIOT-OS:master May 10, 2022
@maribu maribu added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label May 10, 2022
@maribu
Copy link
Member

maribu commented May 10, 2022

Looks like the automerge was faster than giving the CI another spin :) Anyway, the next CI run with also test this.

@maribu maribu removed the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label May 10, 2022
@benpicco benpicco deleted the nanocoap-void branch May 10, 2022 08:58
benpicco pushed a commit to benpicco/RIOT that referenced this pull request May 16, 2022
Updating to riot-sys 0.7.7 enables support for more recent C2Rust
versions, and to riot-wrappers 0.7.22 unblocks [17990].

[17990]: RIOT-OS#17990

(cherry picked from commit ec498cd)
@chrysn chrysn added this to the Release 2022.07 milestone Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: CoAP Area: Constrained Application Protocol implementations Area: network Area: Networking Area: sys Area: System Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants