Skip to content

Commit

Permalink
Add RUN_WITH_CACHE doc
Browse files Browse the repository at this point in the history
  • Loading branch information
idelvall committed Nov 14, 2023
1 parent c884ebb commit 61ab7e8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ For example `--output="release/[^\./]+"` would keep all the files in `/target/re
### Thread safety
This UDC is thread safe. Parallel builds of targets calling this UDC should be free of race conditions.

## +RUN_WITH_CACHE

`+RUN_WITH_CACHE` runs the passed command with the CARGO caches mounted.

Notice that in order to run this UDC, +INIT must be called first.

### Arguments
#### `command (required)`
Command to run, can be any expression. For example:

```earthfile
DO rust-udc+RUN_WITH_CACHE --command "du \$CARGO_HOME"
```

## Examples:

Suppose the following project:
Expand Down

0 comments on commit 61ab7e8

Please sign in to comment.