| Serge Bazanski | cbf1fa9 | 2021-07-02 17:28:50 +0200 | [diff] [blame] | 1 | Rust dependency management |
| 2 | ========================== |
| 3 | |
| Tim Windelschmidt | 5853fc9 | 2024-07-24 11:47:58 +0000 | [diff] [blame^] | 4 | Dependencies are defined in Cargo.toml. Dependency syncing and updating is done in the repository rule which means it’s done during the analysis phase of builds. |
| Serge Bazanski | cbf1fa9 | 2021-07-02 17:28:50 +0200 | [diff] [blame] | 5 | |
| Tim Windelschmidt | 5853fc9 | 2024-07-24 11:47:58 +0000 | [diff] [blame^] | 6 | To render a new lock file: |
| Serge Bazanski | cbf1fa9 | 2021-07-02 17:28:50 +0200 | [diff] [blame] | 7 | |
| Tim Windelschmidt | 5853fc9 | 2024-07-24 11:47:58 +0000 | [diff] [blame^] | 8 | $ CARGO_BAZEL_REPIN=1 bazel sync |
| Serge Bazanski | cbf1fa9 | 2021-07-02 17:28:50 +0200 | [diff] [blame] | 9 | |
| Tim Windelschmidt | 5853fc9 | 2024-07-24 11:47:58 +0000 | [diff] [blame^] | 10 | For more information on the process, consult the official [rules_rust/crate_universe documentation](https://bazelbuild.github.io/rules_rust/crate_universe.html). |