Skip to contentSkip to conversation

ref-manual: document cargo_c class

PATCH New [email protected] 1 participant 1 message Oct 30, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ref-manual: document cargo_c class

From: Michael Opdenacker <[email protected]>

CC Frederic Martinsons <[email protected]>
---
 documentation/ref-manual/classes.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)
documentation/ref-manual/classes.rst +13 -0
index f1d545f310..3070f13551 100644
@@ -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``
Signature · 1 line
2.34.1