Skip to content

Make libc backend on Linux depend only on libc #1589

@gurchetansingh

Description

@gurchetansingh

Currently, the Rustix libc backend on Linux has a dependency on linux-raw-sys in certain build configurations. The underlying issues are:

Constants/definitions

  1. libc doesn't export all constants on all build configurations. For example, STATX_* on Linux musl is not exported and xdp_mmap_offsets.
  2. Rustix tries to make up for this using linux-raw-sys constants + defintions.

I think the solution is to slowly try to upstream the things Rustix currently uses to libc, and if we get rejected, delete the corresponding linux-raw-sys if we find no active user.

But open to other options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions