Skip to content

Commit

Permalink
Add instructions for running cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Sep 19, 2024
1 parent b0b0f64 commit 0e62e0e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions {{ .ProjectSnake }}/README.bazel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 0e62e0e

Please sign in to comment.