Skip to content

Add support for libcamera v0.7.0#81

Merged
chemicstry merged 5 commits into
lit-robotics:mainfrom
Palladinium:libcamera-0.7.0
Feb 25, 2026
Merged

Add support for libcamera v0.7.0#81
chemicstry merged 5 commits into
lit-robotics:mainfrom
Palladinium:libcamera-0.7.0

Conversation

@Palladinium

@Palladinium Palladinium commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

libcamera 0.7.0 was released a few days ago, and Arch Linux has already switched to it, so libcamera-rs fails to build on it.

This PR attempts to add support for the new version, but it's done somewhat blindly, so guidance would be appreciated!

All the changes in the versioned_files directory were done by running regenerate.sh, which seemed like the intended way to do this.

The only other code change in this PR is due to a change in mutability in a returned pointer: Request::metadata() now takes and returns a const (C++) reference. I've reshuffled the calls to it to use cast_mut due to the use of NonNull, which as far as I can tell does not have a const version, but I'm unsure if there's a better way to do it. It seems safe to me, given that the return value of metadata is only ever turned into a &ControlList, but additional review would be appreciated - it feels kinda off to be casting the pointer to mutable and then immediately back to a const reference.

@chemicstry chemicstry merged commit ac02220 into lit-robotics:main Feb 25, 2026
8 checks passed
@chemicstry

Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants