diff options
author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2023-10-30 15:48:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-06 22:52:32 +0000 |
commit | 7b8ce9b9795c454c5a85c25680007d5f5a82f5a2 (patch) | |
tree | a180e7b98da14e35cf264eba1dfacf1439e74e02 /documentation | |
parent | 96290c8b1cbc7d83e06d31733101442a1a787915 (diff) | |
download | poky-7b8ce9b9795c454c5a85c25680007d5f5a82f5a2.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.rst | 13 |
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 | ||
282 | This class inherits the :ref:`ref-classes-cargo_common` class. | 282 | This class inherits the :ref:`ref-classes-cargo_common` class. |
283 | 283 | ||
284 | .. _ref-classes-cargo_c: | ||
285 | |||
286 | ``cargo_c`` | ||
287 | =========== | ||
288 | |||
289 | The :ref:`ref-classes-cargo_c` class can be inherited by a recipe to generate | ||
290 | a Rust library that can be called by C/C++ code. The recipe which inherits this | ||
291 | class has to only replace ``inherit cargo`` by ``inherit cargo_c``. | ||
292 | |||
293 | See the :yocto_git:`rust-c-lib-example_git.bb | ||
294 | </poky/tree/meta-selftest/recipes-devtools/rust/rust-c-lib-example_git.bb>` | ||
295 | example recipe. | ||
296 | |||
284 | .. _ref-classes-cargo_common: | 297 | .. _ref-classes-cargo_common: |
285 | 298 | ||
286 | ``cargo_common`` | 299 | ``cargo_common`` |