14 releases

Uses old Rust 2015

0.2.7 Mar 24, 2022
0.2.5 Aug 14, 2021
0.2.4 May 15, 2021
0.2.3 Jul 28, 2020
0.2.0 Feb 27, 2017

#104 in Operating systems

Download history 302/week @ 2023-12-16 286/week @ 2023-12-23 155/week @ 2023-12-30 402/week @ 2024-01-06 300/week @ 2024-01-13 262/week @ 2024-01-20 427/week @ 2024-01-27 281/week @ 2024-02-03 406/week @ 2024-02-10 459/week @ 2024-02-17 400/week @ 2024-02-24 261/week @ 2024-03-02 370/week @ 2024-03-09 377/week @ 2024-03-16 427/week @ 2024-03-23 520/week @ 2024-03-30

1,745 downloads per month
Used in 19 crates (14 directly)

MIT/Apache

240KB
6.5K SLoC

Raw system calls for Rust

This library allows Rust code to invoke system calls directly.

⚠️ NOTE: Only these architectures have been ported to the stable (as of 1.59) asm! macro

  • aarch64
  • riscv64
  • x86_64

All the other architectures use the deprecated llvm_asm! macro which has already been removed. To use this crate with those architectures you'll need to use an older nightly like nightly-2022-01-14

See the list of supported platforms. Additions are very welcome!

We do not intend to provide wrapper functions like read(2) etc. because there are many subtly different ways to define them in Rust.


lib.rs:

Raw system calls for Rust.

NOTE: Only these architectures have been ported to the stable (as of 1.59) asm! macro

  • aarch64
  • riscv64
  • x86_64

All the other architectures use the deprecated llvm_asm! macro which has already been removed. To use this crate with those architectures you'll need to use an older nightly like nightly-2022-01-14

No runtime deps