There’s that Tauri project that is pretty close to exactly this. It’s Rust code using a browser UI layer, but unlike Electron, it uses the native Web control for the platform. That way you don’t ship the browser portion, just your business logic and UI experience.
You’ll have some cross browser issues but save on footprint.
You’ll have some cross browser issues but save on footprint.