Openembedded Core Discussions
 help / color / mirror / Atom feed
* [RFC][PATCHV2 0/4] Introduction of cargo-c class and recipe
@ 2023-08-13  8:23 frederic.martinsons
  2023-08-13  8:23 ` [PATCHV2 1/4] rust: add cargo-c recipe frederic.martinsons
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: frederic.martinsons @ 2023-08-13  8:23 UTC (permalink / raw)
  To: openembedded-core

From: Frederic Martinsons <frederic.martinsons@gmail.com>

This is an RFC for introducing a new class and recipes that
help building C-ABI compatible header and library around
rust code.

The third patch add examples and test to demonstrate
the usage and the good working of this use case.

Test have been passed with the following in local.conf:

CORE_IMAGE_EXTRA_INSTALL:append = " openssh-sshd openssh-scp cargo rust rust-c-lib-example-bin"
IMAGE_CLASSES += "testimage"
TEST_SUITES = "ping ssh rust"
# To use slirp option in testimage.bbclass
TEST_RUNQEMUPARAMS = "slirp"
TEST_SERVER_IP = "127.0.0.1"
QEMU_USE_SLIRP = "1"

The following changes since commit 05095c116602d1a8c388cc02afffcc36230138f7:

  qemuboot: Update hardcoded path to match new layout (2023-08-11 13:21:31 +0100)

are available in the Git repository at:

  https://gitlab.com/fmartinsons/openembedded-core cargo-c-introduction

Frederic Martinsons (4):
  rust: add cargo-c recipe
  classes-recipe: add cargo_c.bbclass
  rust: provide examples for C library generation in rust
  oeqa/runtime/rust: correct rust test

 .../rust/rust-c-lib-example-bin_git.bb        |   16 +
 .../rust/rust-c-lib-example-crates.inc        |   79 +
 .../rust/rust-c-lib-example_git.bb            |   15 +
 meta/classes-recipe/cargo_c.bbclass           |   41 +
 meta/conf/distro/include/maintainers.inc      |    2 +
 meta/lib/oeqa/runtime/cases/rust.py           |   16 +-
 meta/recipes-devtools/rust/cargo-c-crates.inc |  453 ++++
 meta/recipes-devtools/rust/cargo-c_0.9.18.bb  |   22 +
 .../rust/files/0001-Add-Cargo.lock-file.patch | 2180 +++++++++++++++++
 9 files changed, 2822 insertions(+), 2 deletions(-)
 create mode 100644 meta-selftest/recipes-devtools/rust/rust-c-lib-example-bin_git.bb
 create mode 100644 meta-selftest/recipes-devtools/rust/rust-c-lib-example-crates.inc
 create mode 100644 meta-selftest/recipes-devtools/rust/rust-c-lib-example_git.bb
 create mode 100644 meta/classes-recipe/cargo_c.bbclass
 create mode 100644 meta/recipes-devtools/rust/cargo-c-crates.inc
 create mode 100644 meta/recipes-devtools/rust/cargo-c_0.9.18.bb
 create mode 100644 meta/recipes-devtools/rust/files/0001-Add-Cargo.lock-file.patch

-- 
2.34.1



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

end of thread, other threads:[~2023-08-15 15:52 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-13  8:23 [RFC][PATCHV2 0/4] Introduction of cargo-c class and recipe frederic.martinsons
2023-08-13  8:23 ` [PATCHV2 1/4] rust: add cargo-c recipe frederic.martinsons
2023-08-13  8:23 ` [PATCHV2 2/4] classes-recipe: add cargo_c.bbclass frederic.martinsons
2023-08-13  8:23 ` [PATCHV2 3/4] rust: provide examples for C library generation in rust frederic.martinsons
2023-08-13  8:23 ` [PATCHV2 4/4] oeqa/runtime/rust: correct rust test frederic.martinsons
2023-08-13 10:23 ` [OE-core] [RFC][PATCHV2 0/4] Introduction of cargo-c class and recipe Richard Purdie
2023-08-13 10:48   ` Frédéric Martinsons
2023-08-13 11:22     ` Richard Purdie
     [not found]     ` <177AED879B83B027.8497@lists.openembedded.org>
2023-08-13 13:09       ` Richard Purdie
2023-08-13 14:57         ` Frédéric Martinsons
2023-08-15 15:52           ` Frédéric Martinsons
     [not found]       ` <177AF35A822C5F89.12117@lists.openembedded.org>
2023-08-13 14:53         ` Richard Purdie
2023-08-13 15:00           ` Frédéric Martinsons
2023-08-13 15:05             ` Richard Purdie
2023-08-13 15:10               ` Frédéric Martinsons
2023-08-14  7:30               ` Frédéric Martinsons
2023-08-14  8:46                 ` Richard Purdie
2023-08-14  9:39                   ` Frédéric Martinsons
2023-08-14  9:59                     ` Richard Purdie

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