Skip to content

Commit

Permalink
add usage
Browse files Browse the repository at this point in the history
  • Loading branch information
idelvall committed Oct 30, 2023
1 parent ddef3bf commit dfafe1e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:<version/commit> AS rust
```

Then, just use it in your own targets and UDCs:
```earthfile
DO rust+CARGO ...
```

### Arguments

#### `args`
Expand Down

0 comments on commit dfafe1e

Please sign in to comment.