Openembedded Core Discussions
 help / color / mirror / Atom feed
From: frederic.martinsons@gmail.com
To: openembedded-core@lists.openembedded.org
Subject: [RFC][PATCH 0/3] Introduction of cargo-c class and recipe
Date: Sat, 12 Aug 2023 16:49:51 +0200	[thread overview]
Message-ID: <cover.1691851365.git.frederic.martinsons@gmail.com> (raw)

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 is not meant to be merged (at least I'm
wondering if this is really usefull in oe-core) but
this could help the review and comment since it
demonstrat how to use the class and for what
purpose.

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 (3):
  rust: add cargo-c recipe
  classes-recipe: add cargo_c.bbclass
  rust: provide examples for C library generation in rust

 meta/classes-recipe/cargo_c.bbclass           |   41 +
 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 +++++++++++++++++
 .../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 +
 7 files changed, 2806 insertions(+)
 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
 create mode 100644 meta/recipes-devtools/rust/rust-c-lib-example-bin_git.bb
 create mode 100644 meta/recipes-devtools/rust/rust-c-lib-example-crates.inc
 create mode 100644 meta/recipes-devtools/rust/rust-c-lib-example_git.bb

-- 
2.34.1



             reply	other threads:[~2023-08-12 14:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-12 14:49 frederic.martinsons [this message]
2023-08-12 14:49 ` [RFC][PATCH 1/3] rust: add cargo-c recipe frederic.martinsons
2023-08-12 14:49 ` [RFC][PATCH 2/3] classes-recipe: add cargo_c.bbclass frederic.martinsons
2023-08-12 14:49 ` [RFC][PATCH 3/3] rust: provide examples for C library generation in rust frederic.martinsons
2023-08-12 22:53 ` [OE-core] [RFC][PATCH 0/3] Introduction of cargo-c class and recipe Richard Purdie
2023-08-13  5:56   ` Frédéric Martinsons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1691851365.git.frederic.martinsons@gmail.com \
    --to=frederic.martinsons@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox