Skip to content

collect all Fuchsia bindings into the fuchsia module #140656

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joboet
Copy link
Member

@joboet joboet commented May 5, 2025

The Fuchsia bindings are currently spread out across multiple modules in sys/pal/unix leading to unnecessary duplication. This PR moves all of these definitions into sys::pal::unix::fuchsia and additionally:

  • deduplicates the definitions
  • makes the error names consistent
  • marks zx_thread_self and zx_clock_get_monotonic as safe extern functions
  • removes unused items (there's no need to maintain these bindings if we're not going to use them)
  • removes the documentation for the definitions (contributors should always consult the platform documentation, duplicating that here is just an extra maintenance burden)

@rustbot ping fuchsia

The Fuchsia bindings are currently spread out across multiple modules in `sys/pal/unix` leading to unnecessary duplication. This PR moves all of these definitions into `sys::pal::unix::fuchsia` and additionally:
* deduplicates the definitions
* makes the error names consistent
* marks some extern functions as safe
* removes unused items (there's no need to maintain these bindings if we're not going to use them)
* removes the documentation for the definitions (contributors should always consult the platform documentation, duplicating that here is just an extra maintenance burden)
@rustbot
Copy link
Collaborator

rustbot commented May 5, 2025

r? @workingjubilee

rustbot has assigned @workingjubilee.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. O-fuchsia Operating system: Fuchsia labels May 5, 2025
@rustbot
Copy link
Collaborator

rustbot commented May 5, 2025

Hey friends of Fuchsia! This issue could use some guidance on how this should be
resolved/implemented on Fuchsia. Could one of you weigh in?

cc @erickt @Nashenas88

@Nashenas88
Copy link
Contributor

I'm working on routing this internally to see who's best to review here. Erick is also out this week.

@workingjubilee
Copy link
Member

Thanks!

I will give the Fuchsia folks a bit to actually review this then.

@workingjubilee
Copy link
Member

It looks like it's almost entirely just-moving-stuff tho'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-fuchsia Operating system: Fuchsia O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants