From a79cfdf1e35e51d29ecd209fd1a06464aa69e0f0 Mon Sep 17 00:00:00 2001 From: Michael Opdenacker Date: Mon, 30 Oct 2023 15:48:23 +0100 Subject: ref-manual: document cargo_c class (From yocto-docs rev: 74fc6a70d4636b37fe4eab290ea974e0f1531dbf) Signed-off-by: Michael Opdenacker CC: Frederic Martinsons Signed-off-by: Richard Purdie --- documentation/ref-manual/classes.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'documentation') 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 +` +example recipe. + .. _ref-classes-cargo_common: ``cargo_common`` -- cgit v1.2.3-54-g00ecf