@bobfrankston/rust-builder
v0.1.4
Published
Shared build tooling for Rust/wry WebView projects (msger, mailx, etc.)
Downloads
3,618
Maintainers
Readme
@bobfrankston/rust-builder
Shared build tooling for Rust/wry WebView projects. Handles cross-platform builds via native compilation, WSL, and remote Pi.
Disclaimer: This is a personal project written for my own use. I provide it as-is with no promises of support, stability, or fitness for any particular purpose. Use at your own risk.
Usage
import { build, loadConfig } from "@bobfrankston/rust-builder";
const config = loadConfig("./build-config.json", "myapp", "./native", "./native/bin");
build(config);Postinstall (for npm packages shipping binaries)
import { runPostinstall } from "@bobfrankston/rust-builder/postinstall";
runPostinstall({
binaryName: "myapp",
binDir: "./bin",
binaries: {
win32: "myapp.exe",
darwin: "myapp",
darwinArm64: "myapp-arm64",
linux: "myapp-linux",
linuxArm64: "myapp-linux-aarch64",
},
});Build Platforms
| Platform | Method | Requirements | |----------|--------|--------------| | Windows x64 | Native cargo | Visual Studio Build Tools | | Linux x64 | WSL cargo | WSL + Rust + webkit2gtk-dev | | Pi ARM64 | Remote SSH build | SSH access to Pi with Rust | | ARM64 cross | WSL cross-compile | WSL + aarch64 toolchain |
build-config.json
{
"platforms": { "windows": true, "wsl": true, "pi": false, "arm64": false },
"options": { "release": true, "verbose": true }
}MIT License -- Copyright (c) 2026 Bob Frankston
