blob: f0e2da3fcb12b5c3d50c05d22c3b826c5b588e81 [file] [log] [blame] [view]
Serge Bazanskicbf1fa92021-07-02 17:28:50 +02001Rust dependency management
2==========================
3
Tim Windelschmidt5853fc92024-07-24 11:47:58 +00004Dependencies are defined in Cargo.toml. Dependency syncing and updating is done in the repository rule which means its done during the analysis phase of builds.
Serge Bazanskicbf1fa92021-07-02 17:28:50 +02005
Tim Windelschmidt5853fc92024-07-24 11:47:58 +00006To render a new lock file:
Serge Bazanskicbf1fa92021-07-02 17:28:50 +02007
Tim Windelschmidt5853fc92024-07-24 11:47:58 +00008 $ CARGO_BAZEL_REPIN=1 bazel sync
Serge Bazanskicbf1fa92021-07-02 17:28:50 +02009
Tim Windelschmidt5853fc92024-07-24 11:47:58 +000010For more information on the process, consult the official [rules_rust/crate_universe documentation](https://bazelbuild.github.io/rules_rust/crate_universe.html).