Add instructions on how to update Rustboard dependencies. #5757
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update instructions about how to update Rust dependencies, based on my experiences with #5755.
Notably:
cargo update -p <dependency name>
instead ofcargo fetch
when updating an existing dependency.cargo fetch
will work when updating a dependency to a new major release but will not work when updating a dependency to a new minor release.Cargo.toml
based on the update to crate versions inCargo.lock
. Do this before runningcargo raze
to avoid unnecessary confusion.//tensorboard/data/server/cargo
. There do not appear to be valid targets in//third_party/rust
.bazel test tensorboard/data/server:update_protos_test
to determine if the proto source files need to be updated. It's best to run this test first before attempting to test, build, and run the rest of the server, otherwise the error messages can be quite confusing.