Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] rust: add rust-analyzer support
@ 2026-10-01 12:56 Benhur Tessele
  2026-10-01 12:56 ` [PATCH 1/2] rust: package rust-analyzer as rust-tools-analyzer Benhur Tessele
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Benhur Tessele @ 2026-10-01 12:56 UTC (permalink / raw)
  To: openembedded-core; +Cc: Randy MacLeod, Benhur Tessele

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 the target and nativesdk
variants. 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.

Testing:
 - Patches validated with patchset.
 - 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.
 - Built core-image-minimal with rust-tools-analyzer installed, booted it
   under qemu, and confirmed the rust-analyzer frontend and the
   rust-analyzer-proc-macro-srv binary are present with their libraries
   resolving.

Benhur Tessele (2):
  rust: package rust-analyzer as rust-tools-analyzer
  packagegroup-rust-cross-canadian: add rust-analyzer to the SDK

 .../packagegroup-rust-cross-canadian.bb       |  1 +
 meta/recipes-devtools/rust/rust_1.98.1.bb     | 19 ++++++++++++++++---
 2 files changed, 17 insertions(+), 3 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-10-02 14:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-01 12:56 [PATCH 0/2] rust: add rust-analyzer support Benhur Tessele
2026-10-01 12:56 ` [PATCH 1/2] rust: package rust-analyzer as rust-tools-analyzer Benhur Tessele
2026-10-01 12:56 ` [PATCH 2/2] packagegroup-rust-cross-canadian: add rust-analyzer to the SDK Benhur Tessele
2026-10-01 14:08 ` [OE-core] [PATCH 0/2] rust: add rust-analyzer support Mathieu Dubois-Briand
2026-10-02  9:05   ` Paul Barker
2026-10-02 14:54     ` Benhur T
2026-10-01 14:13 ` Paul Barker
2026-10-01 15:47   ` Benhur T
2026-10-02  9:00     ` Paul Barker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox