-
Notifications
You must be signed in to change notification settings - Fork 28
feat: axerrno compatibility #25
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.
Pull Request Overview
This PR adds optional axerrno compatibility to the page_table_multiarch crate by implementing a From<PagingError> trait for converting paging errors into axerrno error types. The PR also decouples version management by assigning specific versions to each crate instead of using a workspace-level version.
- Added optional
axerrnofeature with error type conversion fromPagingErrortoAxError - Bumped
page_table_multiarchversion to 0.5.7 (separated from workspace version) - Set
page_table_entryversion to 0.5.6 (independent versioning)
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| page_table_multiarch/src/lib.rs | Implements From<PagingError> conversion trait to map paging errors to axerrno error types when the axerrno feature is enabled |
| page_table_multiarch/Cargo.toml | Adds optional axerrno dependency (v0.1), creates axerrno feature flag, and sets independent version 0.5.7 |
| page_table_entry/Cargo.toml | Sets independent version 0.5.6, no longer using workspace version |
| Cargo.toml | Removes workspace-level version field as packages now manage their own versions |
| Cargo.lock | Updates lock file with axerrno dependencies (0.1.2 and its transitive dependency 0.2.0) and related crates |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
It's better to keep the versions of |
Hmm, what I'm considering is avoiding releasing an unchanged version to another crate when only one crate is being updated. Another point is that if there are semver-breaking changes to page_table_multiarch in the future (which will happen soon), I don't want to break the compatibility of page_table_entry as well. |
|
The CI is failing because |
LGTM. I think there are no strong unified release requirements for our packages in the same workspace. So to seperate them is OK for me. |
0173494 to
4056a62
Compare
|
Let's postpone the changes for version bumping. Keep this PR focusing on adding axerrno compatibility only. |
This feature has been discussed in arceos-org/allocator#6.