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

Unify ObjID types across API and ABI crates #176

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Conversation

dbittman
Copy link
Contributor

This PR moves the definition of ObjID in twizzler-abi into twizzler-runtime-api, so that the low-level object ID type is a) the same across all crates, for ergonomics, and b) is available to even the lowest level runtime code.

The vast majority of changes in this PR are removing no-longer-needed type conversions between the previously different ObjID types.

This will significantly improve the ergonomics of working with object IDs.

@dbittman dbittman added enhancement New feature or request abi For the Twizzler ABI labels Apr 16, 2024
@dbittman dbittman self-assigned this Apr 16, 2024
@dbittman dbittman marked this pull request as ready for review April 16, 2024 22:13
@dbittman dbittman requested a review from gvnn3 as a code owner April 16, 2024 22:13
@dbittman dbittman requested a review from PandaZ3D April 16, 2024 22:13
Comment on lines +56 to +57
/// An object ID, represented as a transparent wrapper type. Any value where the upper 64 bits are
/// zero is invalid.
Copy link
Contributor

Choose a reason for hiding this comment

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

I forget, is the rationale here that object ids with the upper 64 bits being zero are reserved by the system?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep!

@dbittman dbittman merged commit a620462 into main Apr 16, 2024
1 check passed
@dbittman dbittman deleted the dbittman-objid branch April 16, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abi For the Twizzler ABI enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants