A terminal UI for Libby libbui.vinnymac.dev
libbui docs install.md
1.4 kB · 46 lines
Markdown
at main

Install #

libbui needs Rust 1.90 or newer. It uses rustls, so there is no OpenSSL or other system library to install.

cargo install --locked --git https://tangled.sh/@vinnymac.dev/libbui libbui

To build from source:

git clone https://tangled.sh/@vinnymac.dev/libbui
cd libbui
cargo build --release
./target/release/libbui

Shell completions, if you like them:

libbui completions zsh > "${fpath[1]}/_libbui"   # zsh
libbui completions bash > ~/.local/share/bash-completion/completions/libbui
libbui completions fish > ~/.config/fish/completions/libbui.fish

RISC-V #

libbui builds as a static riscv64gc-unknown-linux-musl binary that runs on any 64-bit RISC-V Linux. Cross-compiling needs Zig and cargo-zigbuild for the C parts of the TLS stack:

scripts/riscv64.sh   # builds, checks it is static, runs it under qemu-riscv64 if present

CI builds the same binary on every push and keeps it as a workflow artifact. Tagged releases publish it alongside the other platforms.

Try it in a browser #

libbui.vinnymac.dev runs the static ARM64 Linux binary on Linux inside your browser, through unkernel, against a built-in sample library. Nothing leaves the tab. The page lives in web/.