From 0e62e0e7f801665a8479318df52da9bfa2f629cc Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Thu, 19 Sep 2024 17:28:53 +0100 Subject: [PATCH] Add instructions for running cargo --- {{ .ProjectSnake }}/README.bazel.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/{{ .ProjectSnake }}/README.bazel.md b/{{ .ProjectSnake }}/README.bazel.md index 589c697..6208f36 100644 --- a/{{ .ProjectSnake }}/README.bazel.md +++ b/{{ .ProjectSnake }}/README.bazel.md @@ -115,3 +115,26 @@ Available keys are listed in `/tools/workspace_status.sh` and may include: To request stamped build outputs, add the flag `--config=release`. {{ end }} + +{{ if .Computed.rust }} +## Working with Cargo + +If you need to run `cargo` outside of Bazel, you can do so by running `./tools/cargo`, e.g. + +```console +% ./tools/cargo add reqwest +INFO: Invocation ID: b68550c1-e2be-41a7-a519-df96f1f8c091 + Updating crates.io index + Adding reqwest v0.12.7 to dependencies. + Features: + + __tls + + charset + + default-tls + + h2 + + http2 + + macos-system-configuration + 25 deactivated features + Updating crates.io index +``` + +{{ end }}