Skip to content

Commit

Permalink
Add note about private crate registries (#3278)
Browse files Browse the repository at this point in the history
- Updates doc string in extensions.bzl to make note of the new `isolated
= true` changes.
- Do i need to regen anything?
  • Loading branch information
ericmcbride authored Feb 20, 2025
1 parent 12598a6 commit 09472f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crate_universe/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ crate.from_cargo(
use_repo(crate, "crates")
```
#### Note if using Private Crate Registries
If you are using from_cargo and are pulling dependencies from a private crate registry such as Artifactory,
make sure you set the `CARGO_BAZEL_ISOLATED=false bazel build //...` environmental. If not `crates_universe`
will not be able to pull from your private registry.
The generated crates_repository contains helper macros which make collecting dependencies for Bazel targets simpler.
Notably, the all_crate_deps and aliases macros (
see [Dependencies API](https://bazelbuild.github.io/rules_rust/crate_universe.html#dependencies-api)) commonly allow the
Expand Down

0 comments on commit 09472f7

Please sign in to comment.