Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information