rules_rust icon indicating copy to clipboard operation
rules_rust copied to clipboard

Crate Universe: `crate.spec()` supports `path`

Open rickvanprim opened this issue 6 months ago • 0 comments

Exposes path on crate.spec() (which just works with cargo metadata 🎉).

However if the path is outside of the Bazel workspace, it attempts to generate dependency paths in the form //<absolute path> (which don't exist), so this splits SourceAnnotation::Path into SourceAnnotation::Path (located somewhere on the file system) and SourceAnnotation::LocalPath (located relative to the Bazel workspace).

rickvanprim avatar Jun 06 '25 05:06 rickvanprim