TraceMachina / nativelink

Bazel RBE with CAS server implementation in Rust. The free and open source cache and remote execution service, prioritizing stability and speed for the people that need it.
https://docs.nativelink.com
Apache License 2.0
236 stars 46 forks source link

Add Bazel rules for generating rust-project.json #1019

Closed caass closed 2 weeks ago

caass commented 2 weeks ago

Description

rust-analyzer can parse Cargo.toml files or rust-project.json files to generate context about the projects it's run on. rust-project.json files are a format intended to be generated by build tools other than Cargo, such as Bazel. With this setup we can tell rust-analyzer to build the project with Bazel instead of Cargo.

Type of change

Please delete options that aren't relevant.

How Has This Been Tested?

N/A

Checklist


This change is Reviewable