Commit 47d918d
committed
Fix use with packaged crates and Bazel
When the application is built with Bazel as build system, environment
variables like CARGO_MANIFEST_DIR, etc. are set for compatibility, but
CARGO itself isn't, because Bazel is the tool of choice. Therefore any
attempt to invoke Cargo to locate the workspace manifest path fails.
Using proc-macro-crate with crates that are using Cargo workspaces makes
indeed only sense when Cargo is the build system. But when the crates
are packaged, then we don't even need to invoke cargo anyway to locate
a workspace, as there can't be any.
This speeds up the general build and makes it possible to use
proc-macro-crate with Bazel builds.1 parent a12fb32 commit 47d918d
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
244 | 249 | | |
245 | 250 | | |
246 | 251 | | |
| |||
0 commit comments