DEV Community

Ayush
Ayush

Posted on • Originally published at programmershideaway.xyz on

1

UEFI Rust std has a new home

Hello everyone. All my work on UEFI Rust std has been moved to tianocore/rust. This should help with allowing more contribution from both Tianocore and Rust’s sides. This post is just a sort of introduction to the new repository and how to get started.

Documentation

The documentation of the std implementation for UEFI can be found at src/doc/rustc/src/platform-support/unknown-uefi.md. This can be built by using x.py:

./x.py doc src/doc/rustc/ --open
Enter fullscreen mode Exit fullscreen mode

It outlines the requirements and the limitations of the current std for UEFI. It also contains a few examples to get users started.

Development Workflow

The tianocore/rust repository accepts PRs. I will also accept patches in the edk2 mailing list (my email: ayushdevel1325@gmail.com).

Running Tests locally

Running Tests for UEFI is done using remote-test-server and remote-test-client as outlined in my previous post. The only thing I would like to change from that guide is the command to run tests:

RUST_TEST_THREADS=1 TEST_DEVICE_ADDR="localhost:12345" ./x.py test src/test/ui/{FILE or Directory} --target x86_64-unknown-uefi --stage 1
Enter fullscreen mode Exit fullscreen mode

Running tests in single-threaded, even on the host side, fixes a lot of tests that fail due to timeout.

Conclusion

This post was just to spread the word about this work so more people can experiment and provide their feedback about it.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay