mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 03:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
e6342f7b18
commit
a79cfdf1e3
@@ -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``
|
||||
|
||||
Reference in New Issue
Block a user