slint/examples/uefi-demo
2025-06-26 13:30:43 +00:00
..
resource [uefi] add mouse pointer supported. the cursor render by using minipng. (#5084) 2024-04-19 14:40:46 +02:00
build.rs Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
Cargo.toml Bump version number to 1.13.0 2025-06-26 13:30:43 +00:00
demo.slint uefi demo: Fix compilation in master 2025-05-26 15:44:30 +02:00
main.rs Janitor: cargo fmt 2025-01-14 11:24:15 +01:00
README.md [uefi] add mouse pointer supported. the cursor render by using minipng. (#5084) 2024-04-19 14:40:46 +02:00

Slint UEFI demo

This example demonstrates Slint in a UEFI environment.

Screenshot

Here's how it works: uefi_demo_run_at_vm

To build this example a suitable UEFI rust target must be installed first:

rustup target install x86_64-unknown-uefi

To build, simply pass the --package and --target arguments to cargo:

cargo build --package uefi-demo --target x86_64-unknown-uefi

The produced UEFI binary can then either be tested on real hardware by booting it like any other bootloader or directly with QEMU (the firmware location varies by distro):

qemu-system-x86_64 -serial stdio -bios /usr/share/edk2-ovmf/x64/OVMF.fd -kernel target/x86_64-unknown-uefi/debug/uefi-demo.efi

NOTE: the OVMF are not support mouse moving. please run it at VM or your PC if you want to use mouse.