All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/18] devtool: ide-sdk: add support for Rust recipes
@ 2026-11-09 13:44 Enguerrand de Ribaucourt
  2026-11-09 13:44 ` [PATCH v2 01/18] cargo-example: add minimal selftest fixture Enguerrand de Ribaucourt
                   ` (18 more replies)
  0 siblings, 19 replies; 26+ messages in thread
From: Enguerrand de Ribaucourt @ 2026-11-09 13:44 UTC (permalink / raw)
  To: openembedded-core; +Cc: Adrian Freihofer, Enguerrand de Ribaucourt

Hello, this series introduces support for Rust ide-sdk VS Code
configuration against the Yocto cross-compilation toolchain:

 - editor symbol resolution and linting
 - build task
 - deploy task
 - debugging

It introduces a cargo-example recipe following the model used for
cmake and meson.

The generated configurations can be portable to standalone SDK
installations by manually updating the paths.

C/C++ IntelliSense could provide navigation for native code compiled
by Cargo build scripts, using the recipe compiler and sysroot. This
first series defers it because no mixed-language fixture is available
to validate that workflow.

BitBake generates the Cargo configuration consumed by ide-sdk. This series
updates the parsed configuration and writes its supported TOML values
without adding a new dependency.

I reproduced the selftest coverage expected from other recipe classes,
including configuration analysis up to actual debugging symbol resolution.

I largely used AI generation to write this stack. After many iterations,
I am finally happy with the code and commit history quality of this series.
I also have a documentation commit ready for the manual if this gets
approved.

Any feedback is appreciated. Hope this will help lots of Rust developers
working with Yocto distros :).

Cheers,
Enguerrand de Ribaucourt

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
---
Changes in v2:
- Replace Cargo config in-place update with a simple TOML serializer.
- Add Cargo config parser coverage.
- Generate Cargo config for all IDE modes.
- Route ide=none Cargo debugging through LLDB and explain GDB limitations.
- Configure the rustc problems matcher.
- Map Rust sources with STAGING_LIBDIR_NATIVE.
- Discard C/C++ IntelliSense mixed-language feature.
- Fix bbappend always being modified on re-runs
- Fix '=' ordering in remap
- Fix install task duplication
- Link to v1: https://patch.msgid.link/20261026-devtool-ide-sdk-cargo-v1-0-d4504e124d07@savoirfairelinux.com

Thank you very much for the detailed review Adrian, it's been really
helpful!

---
Enguerrand de Ribaucourt (18):
      cargo-example: add minimal selftest fixture
      devtool: ide-sdk: capture Cargo cross environment
      devtool: ide-sdk: export recipe Cargo configuration
      oeqa/selftest: verify Cargo config serialization
      devtool: ide-sdk: recommend Rust Analyzer for Cargo
      devtool: ide-sdk: configure Rust Analyzer for Cargo
      devtool: ide-sdk: generalize binary install task name
      devtool: ide-sdk: extract install task definition
      devtool: ide-sdk: order install after optional build task
      devtool: ide-sdk: add Cargo build task
      devtool: ide-sdk: enforce LLDB for Cargo
      devtool: ide-sdk: remap Cargo sources for BitBake builds
      devtool: ide-sdk: map Cargo workspace sources for LLDB
      devtool: ide-sdk: map libstd-rs sources to Rust SDK
      oeqa/selftest: share source breakpoint lookup
      oeqa/selftest: run IDE tasks with configured environment
      oeqa/selftest: debug Cargo example over QEMU slirp
      oeqa/selftest: verify Cargo rebuild and redeploy

 meta-selftest/recipes-test/rust/cargo-example.bb   |  15 +
 .../recipes-test/rust/cargo-example/Cargo.lock     |   5 +
 .../recipes-test/rust/cargo-example/Cargo.toml     |   8 +
 .../recipes-test/rust/cargo-example/build.rs       |  20 ++
 .../recipes-test/rust/cargo-example/src/main.rs    |  11 +
 meta/lib/oeqa/selftest/cases/devtool.py            | 347 ++++++++++++++++++++-
 scripts/lib/devtool/ide_plugins/__init__.py        |   1 +
 scripts/lib/devtool/ide_plugins/ide_code.py        |  83 ++++-
 scripts/lib/devtool/ide_plugins/ide_none.py        |   4 +-
 scripts/lib/devtool/ide_sdk.py                     | 249 +++++++++++++--
 10 files changed, 688 insertions(+), 55 deletions(-)
---
base-commit: 39b27e524f3c092e5018cbed23ddf1829390ae65
change-id: 20261022-devtool-ide-sdk-cargo-d003158ae2f1

Best regards,
--  
Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>


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

end of thread, other threads:[~2026-11-30 14:49 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-09 13:44 [PATCH v2 00/18] devtool: ide-sdk: add support for Rust recipes Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 01/18] cargo-example: add minimal selftest fixture Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 02/18] devtool: ide-sdk: capture Cargo cross environment Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 03/18] devtool: ide-sdk: export recipe Cargo configuration Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 04/18] oeqa/selftest: verify Cargo config serialization Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 05/18] devtool: ide-sdk: recommend Rust Analyzer for Cargo Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 06/18] devtool: ide-sdk: configure " Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 07/18] devtool: ide-sdk: generalize binary install task name Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 08/18] devtool: ide-sdk: extract install task definition Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 09/18] devtool: ide-sdk: order install after optional build task Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 10/18] devtool: ide-sdk: add Cargo " Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 11/18] devtool: ide-sdk: enforce LLDB for Cargo Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 12/18] devtool: ide-sdk: remap Cargo sources for BitBake builds Enguerrand de Ribaucourt
2026-11-09 14:08   ` Patchtest results for " patchtest
2026-11-09 13:44 ` [PATCH v2 13/18] devtool: ide-sdk: map Cargo workspace sources for LLDB Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 14/18] devtool: ide-sdk: map libstd-rs sources to Rust SDK Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 15/18] oeqa/selftest: share source breakpoint lookup Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 16/18] oeqa/selftest: run IDE tasks with configured environment Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 17/18] oeqa/selftest: debug Cargo example over QEMU slirp Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 18/18] oeqa/selftest: verify Cargo rebuild and redeploy Enguerrand de Ribaucourt
2026-11-10 12:25 ` [OE-core] [PATCH v2 00/18] devtool: ide-sdk: add support for Rust recipes Mathieu Dubois-Briand
2026-11-11  6:46   ` Adrian Freihofer
2026-11-20 17:09     ` Enguerrand de Ribaucourt
2026-11-22 11:44       ` Mathieu Dubois-Briand
2026-11-23 13:38         ` Mathieu Dubois-Briand
     [not found]         ` <18EAB0361F0B4C03.1542659@lists.openembedded.org>
2026-11-30 14:49           ` Mathieu Dubois-Briand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.