Crates.io | dargo-bin |
lib.rs | dargo-bin |
version | 0.1.0 |
created_at | 2025-05-15 16:36:01.881001+00 |
updated_at | 2025-05-15 16:36:01.881001+00 |
description | Tool for building cargo project inside a docker container. |
homepage | https://cyloncore.com |
repository | https://gitlab.com/cyloncore/dargo |
max_upload_size | |
id | 1675301 |
size | 21,556 |
dargo
is a tool to run cargo commands in a docker container.
cargo install dargo-bin
dargo
is a drop in replacement for cargo.
dargo [any cargo command]
For instance, building is done as such:
dargo build
Unit tests are run as such:
dargo test
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.
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