1 unstable release
| 0.1.3 | Jun 12, 2025 |
|---|---|
| 0.1.2 |
|
| 0.1.1 |
|
| 0.1.0 |
|
#2108 in Command line utilities
70 downloads per month
29KB
810 lines
cargo-dub
A Rust-based wrapper for the D language package manager (DUB)
Requirements
- Rust 1.74 or higher
- DUB 1.30.0 or higher
- D compiler (dmd, gdc, ldc)
Installation
cargo install cargo-dub
Features
- Build and run D packages (
cargo dub run) - Build-only mode (
cargo dub build) - Format conversion between dub.json and dub.sdl (
cargo dub convert) - Pass-through mode for raw DUB commands (
cargo dub raw) - Package dependency management (
cargo dub add,cargo dub remove) - Package initialization (
cargo dub init) - Build cache management (
cargo dub clean) - D-Scanner linting integration (
cargo dub lint) - Build description generation (
cargo dub describe) - Package fetching (
cargo dub fetch)
Helper
Usage: cargo-dub [COMMAND]
Commands:
run Build and run package
build Build package
convert Convert dub.json/dub.sdl
raw Pass raw arguments to dub
describe Print JSON build description for package and dependencies
add Add packages as dependencies
remove Remove packages from dependencies
fetch Fetch packages to a shared location
init Initialize an empty package
clean Remove cached build files
lint Run D-Scanner linter tests
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
Dependencies
~0.9–1.4MB
~26K SLoC