rust: add rust-analyzer support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyIn review
- v12 patches 6 repliesSuperseded
Changes in v2 from the cover letter
- Patch 1: build and install rust-analyzer for nativesdk only; dropped the target (class-target) install and the target package.
- Patch 2 unchanged.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | rust: package rust-analyzer for the SDKmeta/ | +10 | 1 reply | |
| 2/2 | packagegroup-rust-cross-canadian: add rust-analyzer to the SDKmeta/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] rust: add rust-analyzer support
rust-analyzer is built as part of the Rust tools but was neither installed nor packaged. This series packages it and wires it into the Rust SDK next to clippy and rustfmt.
Patch 1 adds a rust-tools-analyzer package for nativesdk variant. Beyond the frontend binary it also ships the proc-macro server and depends on the standard library sources, both of which are required for rust-analyzer to actually function.
Patch 2 adds it to the cross-canadian toolchain so that an SDK built with SDK_FEATURES = "rust" provides rust-analyzer out of the box.
v2:
- Patch 1: build and install rust-analyzer for nativesdk only; dropped the target (class-target) install and the target package.
- Patch 2 unchanged.
Testing:
- Built an SDK with SDK_FEATURES = "rust", installed it in a container, and confirmed rust-analyzer resolves the standard library and expands proc-macros end to end: diagnostics/analysis-stats on a crate using a derive macro succeed, with the proc-macro server started from <sysroot>/libexec.
- Reproduced the reported beaglebone-alt failure with v1 (MACHINE=beaglebone-yocto, DISTRO=poky-altcfg) and confirmed v2 builds cleanly, with rust-analyzer no longer compiled for the target.
Benhur Tessele (2):
rust: package rust-analyzer for the SDK packagegroup-rust-cross-canadian: add rust-analyzer to the SDK
.../packagegroups/packagegroup-rust-cross-canadian.bb | 1 + meta/recipes-devtools/rust/rust_1.98.1.bb | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.0