#x86

no-std x86_64

Support for x86_64 specific instructions, registers, and structures

124 releases

0.15.2 Nov 30, 2024
0.15.1 Mar 19, 2024
0.15.0-beta Feb 11, 2024
0.14.13 Nov 30, 2024
0.0.3 Dec 28, 2016

#11 in Hardware support

Download history 22052/week @ 2024-10-22 15977/week @ 2024-10-29 16534/week @ 2024-11-05 13720/week @ 2024-11-12 15345/week @ 2024-11-19 13884/week @ 2024-11-26 16570/week @ 2024-12-03 21035/week @ 2024-12-10 16045/week @ 2024-12-17 11548/week @ 2024-12-24 13470/week @ 2024-12-31 13697/week @ 2025-01-07 17554/week @ 2025-01-14 15257/week @ 2025-01-21 12253/week @ 2025-01-28 11351/week @ 2025-02-04

58,950 downloads per month
Used in 87 crates (59 directly)

MIT/Apache

385KB
7K SLoC

x86_64 library

Crates.io Build Status docs.rs

Support for x86_64 specific instructions (e.g. TLB flush), registers (e.g. control registers), and structures (e.g. page tables).

Crate Feature Flags

  • nightly: Enables features only available on nightly Rust; enabled by default.
  • instructions: Enabled by default, turns on x86_64 specific instructions, and dependent features. Only available for x86_64 targets.

Minimum Supported Rust Version (MSRV)

If no nightly features are enabled, Rust 1.59.0 is required. This can be done by either:

  • --no-default-features --features instructions
  • --no-default-features

If the nightly feature or any of its sub-features is enabled (which is the default), a recent nightly is required.

Other OS development crates

This crate does not attempt to handle every facet of OS development. Other useful crates in this space include:

  • raw-cpuid: safe wrappers around the cpuid instruction
    • Provides parsed versions of the CPUID data, rather than just raw binary values.
    • Support for AMD and Intel specific values.
    • Works on x86 and x86_64 systems, in both user and kernel mode.
  • uefi: abstractions for UEFI (the successor to BIOS)
    • Provides UEFI tables, functions, and types.
    • Useful for writing UEFI applications, or calling UEFI functions from your OS.
    • Works on a variety of modern platforms, not just x86_64.
  • volatile: interface to read_volatile and write_volatile
    • Makes it easier to program MMIO interfaces and devices.
    • Works on any Rust target.

Dependencies

~195KB