slint/examples/uefi-demo
autofix-ci[bot] 590c9b7864
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
[autofix.ci] apply automated fixes
2025-12-09 12:11:04 +01: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 Move the workspace to rust edition 2024 2025-12-09 12:11:04 +01:00
demo.slint uefi demo: Fix compilation in master 2025-05-26 15:44:30 +02:00
main.rs [autofix.ci] apply automated fixes 2025-12-09 12:11:04 +01:00
README.md Remove license header from .md/.mdx files 2025-12-04 21:58:09 +01: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.