Skip to content

Commit

Permalink
adapt docs
Browse files Browse the repository at this point in the history
  • Loading branch information
idelvall committed Dec 19, 2023
1 parent 1eb90a9 commit 98d89f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ IMPORT github.com/earthly/lib/rust:<version/commit> AS rust

This function sets some configuration in the environment (used by following functions), and installs required dependencies.
It must be called once per build environment, to avoid passing repetitive arguments to the functions called after it, and to install required dependencies before the source files are copied from the build context.
Note that this function changes `$CARGO_HOME` in the calling environment to point to a cache mount later on.
It is recommended then that all interaction with cargo is done throug the `+CARGO` function or using cache mounts returned by `+GET_RUST_CACHE_MOUNTS`.

### Usage

Expand Down

0 comments on commit 98d89f8

Please sign in to comment.