-
Notifications
You must be signed in to change notification settings - Fork 124
ostree-ext: update ostree rust bindings and use new feature #1401
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
base: main
Are you sure you want to change the base?
Conversation
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.
Code Review
The pull request updates the ostree rust bindings and enables a new feature, v2025_3
. It also downgrades the windows-sys
dependency to version 0.52.0. The changes include updates to the Cargo.lock
and ostree-ext/Cargo.toml
files. It's important to verify the compatibility and functionality of the updated dependencies and the new feature.
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.
LGTM but this is going to fail until we have the new ostree upstream release shipped everywhere, which is going to be really painful 😢
So tempting again to just vendor ostree, or at least vendor the sysroot parts...
With some nontrivial work what we could do is detect at build time (via a build.rs script) whether a new enough ostree is available, and then only access the updated APIs via a #[cfg()]
.
We need to ship anywhere either way... I will go do that. |
8d9c2b5
to
4708643
Compare
|
4708643
to
5c44b24
Compare
I'm going to take a quick run at making this a build time conditional |
Add machinery to do dynamic build time detection of ostree, and only enable use of the feature if we have a new enough version. Signed-off-by: Colin Walters <[email protected]>
5c44b24
to
d74531c
Compare
OK well, I made it work...except that it only works because we messed up the |
This allows us to enable soft-reboot