* [PATCH] ref-manual: document cargo_c class
@ 2023-10-30 14:49 michael.opdenacker
0 siblings, 0 replies; only message in thread
From: michael.opdenacker @ 2023-10-30 14:49 UTC (permalink / raw)
To: docs; +Cc: Michael Opdenacker, Frederic Martinsons
From: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
CC: Frederic Martinsons <frederic.martinsons@gmail.com>
---
documentation/ref-manual/classes.rst | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index f1d545f310..3070f13551 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -281,6 +281,19 @@ tool.
This class inherits the :ref:`ref-classes-cargo_common` class.
+.. _ref-classes-cargo_c:
+
+``cargo_c``
+===========
+
+The :ref:`ref-classes-cargo_c` class can be inherited by a recipe to generate
+a Rust library that can be called by C/C++ code. The recipe which inherits this
+class has to only replace ``inherit cargo`` by ``inherit cargo_c``.
+
+See the :yocto_git:`rust-c-lib-example_git.bb
+</poky/tree/meta-selftest/recipes-devtools/rust/rust-c-lib-example_git.bb>`
+example recipe.
+
.. _ref-classes-cargo_common:
``cargo_common``
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-30 14:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-30 14:49 [PATCH] ref-manual: document cargo_c class michael.opdenacker
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.