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

#138 in Operating systems

Download history 460/week @ 2024-07-27 762/week @ 2024-08-03 973/week @ 2024-08-10 604/week @ 2024-08-17 640/week @ 2024-08-24 636/week @ 2024-08-31 549/week @ 2024-09-07 619/week @ 2024-09-14 760/week @ 2024-09-21 705/week @ 2024-09-28 412/week @ 2024-10-05 529/week @ 2024-10-12 693/week @ 2024-10-19 682/week @ 2024-10-26 485/week @ 2024-11-02 338/week @ 2024-11-09

2,309 downloads per month
Used in 23 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