• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Contributing to rustix
2
3Rustix is a [Bytecode Alliance] project. It follows the Bytecode Alliance's
4[Code of Conduct] and [Organizational Code of Conduct].
5
6## Testing
7
8To keep compile times low, most features in rustix's API are behind cargo
9features. A special feature, `all-apis` enables all APIs, which is useful
10for testing.
11
12```
13cargo test --features=all-apis
14```
15
16And, rustix has two backends, linux_raw and libc, and only one is used in
17any given build. To test with the libc backend explicitly, additionally
18enable the `use-libc` feature:
19
20```
21cargo test --features=all-apis,use-libc
22```
23
24Beyond that, rustix's CI tests many targets and configurations. Asking for
25help is always welcome, and it's especially encouraged when the issue is
26getting all the `cfg`s lined up to get everything compiling on all the
27configurations on CI.
28