cargo-dub

Crates.iocargo-dub
lib.rscargo-dub
version0.1.3
created_at2025-06-11 15:45:59.383459+00
updated_at2025-06-12 14:05:45.864956+00
descriptionA cargo subcommand for dub
homepage
repositoryhttps://github.com/kassane/cargo-dub
max_upload_size
id1708780
size40,661
Matheus C. França (kassane)

documentation

README

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
Commit count: 7

cargo fmt