No description
Find a file
2018-06-05 08:43:08 +03:00
src Fix graphics tests on QEMu 2018-06-04 17:29:25 +03:00
uefi-alloc Fix some Clippy warnings 2018-06-01 07:57:09 +03:00
uefi-logger Refactor some code to eliminate warnings 2018-05-20 07:43:01 +03:00
uefi-services Fix compilation of the panic implementation 2018-06-05 08:19:54 +03:00
uefi-test-runner Refactor build script to use argparse 2018-06-05 08:20:24 +03:00
uefi-utils Fix a bug with find_protocol 2018-06-04 17:09:42 +03:00
.editorconfig Add project skeleton 2017-11-22 19:06:09 +02:00
.gitattributes Add project skeleton 2017-11-22 19:06:09 +02:00
.gitignore Update docs and fix some warnings 2018-06-03 12:38:39 +03:00
BUILDING.md Add instructions for booting on real computers 2018-06-05 08:37:39 +03:00
Cargo.toml Move tests runner to uefi-test-runner 2018-06-03 11:04:29 +03:00
CONTRIBUTING.md Update contributing information 2018-06-05 08:43:08 +03:00
LICENSE License under MPL 2.0 2017-11-22 19:38:50 +02:00
README.md Update image size 2018-06-04 10:03:00 +03:00

uefi-rs

This library allows you to write UEFI applications in Rust.

UEFI is the successor to the BIOS. It provides an early boot environment for OS loaders and other low-level applications.

The objective of this library is to provide safe and performant wrappers for UEFI interfaces, and allow developers to write idiomatic Rust code.

uefi-rs running in QEMU

Project structure

This project contains multiple sub-crates:

  • uefi (top directory): defines the standard UEFI tables / interfaces.

  • uefi-services: initializes many convenience crates:

    • uefi-logger: wrapper for the standard logging crate. Prints log output to console.
    • uefi-alloc: implements a global allocator using UEFI functions. This allows you to allocate objects on the heap.
  • uefi-utils: building on top of uefi-services, this crate provides a higher-level access to UEFI functions. Provides utility functions for common API usage.

  • uefi-test-runner a UEFI application that runs unit / integration tests.

Documentation

This crate's documentation is fairly minimal, and you are encouraged to refer to the UEFI specification for detailed information.

rustdoc

Use the build.py script in the uefi-test-runner directory to generate the documentation:

./build.py doc

Sample code

An example UEFI app is built in the uefi-test-runner directory.

Check out the testing README.md for instructions on how to run the crate's tests.

This repo also contains a x86_64-uefi.json file, which is a custom Rust target for 64-bit UEFI applications.

Building UEFI programs

For instructions on how to create your own UEFI apps, see the BUILDING.md file.

License

The code in this repository is licensed under the Mozilla Public License 2. This license allows you to use the crate in proprietary programs, but any modifications to the files must be open-sourced.

The full text of the license is available in the LICENSE file.