rsbuild-0.4.0 is not a library.
rsbuild
A self-sufficient runtime to build projects.
rsbuild provides commands for building Python wheels, Docker containers, Rust binaries, and managing Python project scaffolding.
Installation
From crates.io
From source
Usage
Global Options
| Option | Description |
|---|---|
-v, --verbose |
Increase output verbosity |
-q, --quiet |
Suppress non-essential output |
--dry-run |
Preview commands without executing them |
-y, --yes |
Skip confirmation prompts |
-h, --help |
Print help information |
-V, --version |
Print version |
Commands
| Command | Description |
|---|---|
build |
Build artifacts (wheel, docker, cargo) |
pull |
Pull Docker images |
run |
Run Docker Compose services |
clean |
Clean build artifacts and caches |
cython |
Compile Cython modules and package into wheel |
python |
Python project management |
glances |
Run glances system monitor |
completions |
Generate shell completion scripts |
doctor |
Check if required tools are installed |
Python Project Management
Initialize a New Python Project
# Initialize in current directory (uses directory name as package name)
# Specify a custom package name
# Skip tests or devcontainer
# Preview what would be created
This creates a complete Python project with:
pyproject.toml- Modern Python packaging with hatchlingREADME.md- Project documentation.pre-commit-config.yaml- Pre-commit hooks (ruff, mypy).gitignore- Python-specific ignoresTaskfile.yml- Task runner commands (works on macOS and Linux)<package>/__init__.py- Package with__version__and__build__<package>/tests/- Test directory with sample test.devcontainer/- VS Code devcontainer configurationDockerfile&docker-compose.yml- Container setup
Sync Version
# Update __version__ and __build__ in __init__.py from pyproject.toml
Taskfile Commands
After initializing, use these task commands:
Build Commands
# Build Python wheel using uv
# Build all configured targets
# Build Rust binary (release mode by default)
# Build Docker Compose service
Pull Commands
# Pull all configured images
# Pull a specific service image
Run Docker Services
# Run a Docker Compose service
# Run with additional arguments
Clean
# Remove build artifacts, egg-info, pycache, and notebook checkpoints
# Also remove Rust target directory
Doctor
# Check system for required tools
Shell Completions
# Generate completions for your shell
Project Structure
src/
├── main.rs # Entry point
├── cli.rs # CLI definitions (clap)
├── error.rs # Error types (thiserror)
├── executor.rs # Command execution utilities
└── commands/
├── mod.rs # Module exports
├── build.rs # Build commands
├── clean.rs # Clean command
├── cython.rs # Cython compilation
├── doctor.rs # System diagnostics
├── pull.rs # Docker pull commands
├── python.rs # Python project management
└── run.rs # Docker run command
License
MIT