Looks like Winit and Softbuffer, WGPU, and Skia all work on FreeBSD, so likely not too hard. It'd probably be a case of going through a bunch of dependencies and patching them to also include FreeBSD where they were previously conditionally compiling for Linux.
UPDATE: Actually, turns out rust ecosystem support for FreeBSD is pretty good and Vello CPU and Vello GPU just work out of the box.
python3 metapackage is required: installing only python312 provides python3.12 without a python3 symlink, causing stylo's build.rs to fail unless the PYTHON3 env var is set.
rust from quarterly pkg is 1.98.1 (meets Blitz's 1.91.0 MSRV).
cmake is only needed when the net is enabled (for aws-lc-sys).
2
u/nicoburns 7d ago edited 7d ago
Looks like Winit and Softbuffer, WGPU, and Skia all work on FreeBSD, so likely not too hard.
It'd probably be a case of going through a bunch of dependencies and patching them to also include FreeBSD where they were previously conditionally compiling for Linux.UPDATE: Actually, turns out rust ecosystem support for FreeBSD is pretty good and Vello CPU and Vello GPU just work out of the box.
Skia requires a small patch (https://github.com/rust-skia/rust-skia/pull/1379)
I had an AI check this in a VM (FreeBSD 14.5), and it turns it just works.
Edited notes from the AI on prerequisites:
1. Build dependencies
python3metapackage is required: installing onlypython312providespython3.12without apython3symlink, causingstylo'sbuild.rsto fail unless thePYTHON3env var is set.rustfrom quarterly pkg is1.98.1(meets Blitz's1.91.0MSRV).cmakeis only needed when thenetis enabled (foraws-lc-sys).2. Runtime dependencies
3. Build & run
todomvcThe Dioxus CLI (not required for regular builds, but needed for hot reloading) needs some tweaks to work on FreeBSD (https://github.com/DioxusLabs/dioxus/pull/6104)