SOL-BASHRS-003 // bashrs

Rust-to-POSIX Release Packager

Compile a memory-safe Rust packaging script into a portable zero-dependency POSIX shell script for air-gapped hosts.

Measured delta: 0 bashisms; runs identically on dash, ash, and bash (412 B)

Rust-to-POSIX Release Packager receipt poster
Verified CLI Version
bashrs 7.5.0 (commit: b634edc7642354d208deb431a9a6f2c0d76616b1)
Receipt SHA-256
5f4daa98d9165a0433d0d68a1923175aaf0dd8133749f017417b07593f5ef756

Before (Failing Anti-Pattern)

#!/bin/bash
declare -A map=([a]=1) # non-POSIX bashism fails on dash/alpine
tar -czf dist/app.tar.gz src/

After (Verified Code)

fn main() {
    let artifact = "dist/app.tar.gz";
    println!("packaging {artifact}");
}

Verification Contract

schema: bashrs.contract.v1
target: posix-sh
invariants:
  - zero_bashisms: true
  - shellcheck_clean: true

Verified CLI Command & Output

$ bashrs build --target posix release.rs -o release.sh
bashrs build: emitted release.sh (412 B, POSIX.1-2017 clean)