Skip to content

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

@ayroblu

Description

@ayroblu

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions