1 unstable release
Uses new Rust 2024
new 0.1.0 | May 15, 2025 |
---|
#218 in Unix APIs
50 downloads per month
7KB
62 lines
dargo
dargo
is a tool to run cargo commands in a docker container.
Installation
cargo install dargo-bin
Usage
dargo
is a drop in replacement for cargo.
dargo [any cargo command]
Example
For instance, building is done as such:
dargo build
Unit tests are run as such:
dargo test
Configuration file
dargo
can be configured using a Dargo.toml
file. The file is located in the current directory. The file is optional.
Example, using default values:
[docker]
image = "rust:latest" # The docker image to use.
pull = false # Pull the image before starting the container.
build = false # Build the image before starting the container, it requires the dockerfile field to be set.
dockerfile = "" # The dockerfile to use when building.
Arguments to dargo
Since dargo
forward all arguments to the cargo in docker. To modify the behavior of dargo per runs, arguments are passed using an environment variable named DARGO_ARGS
. The arguments are separated by a semicolon.
Example:
DARGO_ARGS="debug;ignore-toml" dargo build
Dependencies
~1.2–8.5MB
~71K SLoC