From dfafe1ec0c590788400e5e92cd92370da00be245 Mon Sep 17 00:00:00 2001 From: nacho Date: Mon, 30 Oct 2023 21:10:57 +0100 Subject: [PATCH] add usage --- rust/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rust/README.md b/rust/README.md index fe6fe0d..e2792b9 100644 --- a/rust/README.md +++ b/rust/README.md @@ -6,6 +6,18 @@ Earthly's official collection of rust [UDCs](https://docs.earthly.dev/docs/guide This UDC runs the cargo command `cargo $args` caching the contents of `$CARGO_HOME/registry`, `$CARGO_HOME/git` and `target` for future builds of the same calling target. +### Usage + +First, import the UDC up in your Earthfile: +```earthfile +IMPORT github.com/earthly/lib/rust: AS rust +``` + +Then, just use it in your own targets and UDCs: +```earthfile +DO rust+CARGO ... +``` + ### Arguments #### `args`