bytecodealliance / bytecodealliance/rustix

Make libc backend on Linux depend only on libc

Open
#1,589 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2.1k
Forks
294
Avg merge
4h 7m
Merged PRs (30d)
2

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.