1 unstable release
Uses new Rust 2024
new 0.2.0 | Mar 30, 2025 |
---|
#251 in Compression
730KB
802 lines

Logo by @syntaxspin
RustPack
Bundle your Rust applications for seamless cross-platform execution🚀 What is RustPack?
RustPack is a powerful tool that simplifies cross-platform Rust application distribution. Build once, run anywhere - without requiring your users to have Rust installed.
rustpack -i ./my-project -o my-awesome-app.rpack -t x86_64-apple-darwin,x86_64-pc-windows-msvc,x86_64-unknown-linux-gnu
✨ Features
- Single Executable - Package your Rust application as a standalone executable
- Cross-Platform - Automatically detects and runs the right binary for the user's platform
- Zero Dependencies - Users don't need Rust or any other dependencies installed
- Multiple Architectures - Build for various platforms in one operation
- Offline Execution - Apps run without requiring network connectivity
🛠️ Installation
git clone https://github.com/neoapps-dev/rustpack.git
cd rustpack
cargo build --release
cd target/release
pwd
# add the printed path to $PATH
📋 Usage
Basic Usage
rustpack -i path/to/your/project -o output_name.rpack
Specify Target Platforms
rustpack -i . -o myapp.rpack -t x86_64-apple-darwin,aarch64-apple-darwin,x86_64-unknown-linux-gnu
Run Your Packaged App
./myapp.rpack
🔍 How It Works
RustPack creates a self-extracting archive with a smart bootstrap script that:
- Detects the user's platform and architecture
- Extracts the appropriate binary
- Executes it with all command-line arguments passed through
📊 Supported Platforms
- 🍎 macOS (x86_64, aarch64)
- 🐧 GNU/Linux (x86_64, aarch64, arm, x86)
- 🪟 Windows (x86_64, x86)
🤝 Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request.
❤️ Special Thanks
- The Rust Programming Language
- SyntaxSpin for the logo :)
📝 License
This project is licensed under the GNU GPL-3.0 License - see the LICENSE file for details.
Dependencies
~14–25MB
~390K SLoC