diff options
| -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`` |
