summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2023-10-30 15:48:23 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-06 22:52:27 +0000
commita79cfdf1e35e51d29ecd209fd1a06464aa69e0f0 (patch)
tree6a687a5ca46971b164545b9329215216a83b0235 /documentation
parente6342f7b1875ede05dea7ab05e44cd92d0b4e805 (diff)
downloadpoky-a79cfdf1e35e51d29ecd209fd1a06464aa69e0f0.tar.gz
ref-manual: document cargo_c class
(From yocto-docs rev: 74fc6a70d4636b37fe4eab290ea974e0f1531dbf) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> CC: Frederic Martinsons <frederic.martinsons@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/ref-manual/classes.rst13
1 files changed, 13 insertions, 0 deletions
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.
281 281
282This class inherits the :ref:`ref-classes-cargo_common` class. 282This class inherits the :ref:`ref-classes-cargo_common` class.
283 283
284.. _ref-classes-cargo_c:
285
286``cargo_c``
287===========
288
289The :ref:`ref-classes-cargo_c` class can be inherited by a recipe to generate
290a Rust library that can be called by C/C++ code. The recipe which inherits this
291class has to only replace ``inherit cargo`` by ``inherit cargo_c``.
292
293See the :yocto_git:`rust-c-lib-example_git.bb
294</poky/tree/meta-selftest/recipes-devtools/rust/rust-c-lib-example_git.bb>`
295example recipe.
296
284.. _ref-classes-cargo_common: 297.. _ref-classes-cargo_common:
285 298
286``cargo_common`` 299``cargo_common``