bazelbuild / bazelbuild/rules_rust

gen_rust_project not downloading/generating a .so file

Open
#2,733 1 comment 0 reactions 0 assignees View on GitHub
needs-triage
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

![image](https://github.com/bazelbuild/rules_rust/assets/499678/6da64361-7e9f-406b-96b0-6f35d09f419b)

There is a crate-spec file present in the dir:
```
ls ~/.cache/bazel/_bazel_robertc/8b0aece0fa823e87b78e3a123965ccb1/execroot/_main/bazel-out/linux_amd64-opt-exec-ST-b021421c07d4/bin/external/_main~crate_repositories~crates_vendor__extend-1.2.0/
extend.rust_analyzer_crate_spec.json
```

but nothing else...

The spec file refers to the .so file:
```
"proc_macro_dylib_path": "__EXEC_ROOT__/bazel-out/linux_amd64-opt-exec-ST-b021421c07d4/bin/external/_main~crate_repositories~crates_vendor__extend-1.2.0/libextend-2251390687.so",
```

Doing a bazel clean + gen_rust_project with different --remote_download_outputs= options doesn't affect the presence of the .so.

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.