bazelbuild / bazelbuild/rules_rust

gen_rust_project doesn't respect --symlink_prefix=.bazel/

Open
#3,776 0 comments 0 reactions 1 assignee Claimed by @UebelAndre View on GitHub
needs-triage rust-analyzer
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

Hey, I'm not sure if this is the issue, but I think it is.

Basically I run:
`bazel run @rules_rust//tools/rust_analyzer:gen_rust_project -- "//..."`

And it mostly works fine, but for one of my projects, I dynamically generate a Cargo.toml since uniffi proc-macro requires it. However, it's erroring with:

```
• failed to open file bazel-out/darwin_arm64-fastbuild/bin/rust-code/example-shared-lib/example/Cargo.toml macro-error
```

And I realise that the folder it should be in is `.bazel/out/darwin_arm64-fastbuild/bin/rust-code/example-shared-lib/example/Cargo.toml` which does exist, this is due to the configuration in my .bazelrc: `build --symlink_prefix=.bazel/`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.