# lib.rs - source
Source of the Rust file `/home/runner/.cargo/git/checkouts/riscv-ab2abd16c438337b/11d43cf/src/lib.rs`.
Keywords: rust, rustlang, rust-lang

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28

    //! Low level access to RISC-V processors
    //!
    //! # Minimum Supported Rust Version (MSRV)
    //!
    //! This crate is guaranteed to compile on stable Rust 1.42 and up. It *might*
    //! compile with older versions but that may change in any new patch release.
    //!
    //! # Features
    //!
    //! This crate provides:
    //!
    //! - Access to core registers like `mstatus` or `mcause`.
    //! - Interrupt manipulation mechanisms.
    //! - Wrappers around assembly instructions like `WFI`.

    #![no_std]
    #![cfg_attr(feature = "inline-asm", feature(asm_const))]
    extern crate bare_metal;
    #[macro_use]
    extern crate bitflags;
    extern crate bit_field;

    pub mod addr;
    pub mod asm;
    pub mod interrupt;
    pub mod paging;
    pub mod register;