poky/meta-selftest/recipes-devtools
Frederic Martinsons 5116f2b2cf rust: provide examples for C library generation in rust
rust-c-lib-example is a little rust code which provide
a single function to print a formatted date (via the chrono crate)
from an input timestamp in millisecond. It has the necessary FFI
annotation and inherit cargo_c class for the C ABI compatible
library generation.

rust-c-lib-example is meson project for the C code which
will call the print_date function from rust-c-lib-example
if no argument is provided, if any argument is provided
it will print "Hello world in rust from C!"

add a runtime test case to check if all went well.

(From OE-Core rev: bb177c7764b1bc47157d57d7a34930e59a7acef3)

Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-21 16:15:35 +01:00
..
mtd selftest: add a copy of previous mtd-utils version to meta-selftest 2022-11-08 22:47:17 +00:00
python selftest/python-async-test: set precise BSD license 2021-09-04 08:44:10 +01:00
rust rust: provide examples for C library generation in rust 2023-08-21 16:15:35 +01:00