nuttx-apps/tools
Huang Qi f7e7453807 examples: New app to build Rust with Cargo
Build Rust applictions with cargo is the most commn way,
and it's more easy to cooporate with Rust ecosystem.

This example shows how to use cargo to build a simple hello world
application.

And please notice that you need to install nighly version of rustc
to support this feature, any version after https://github.com/rust-lang/rust/pull/127755
is merged, can use NuttX as cargo target directly.

Build
-----

To build hello_rust_cargo application, you can use any target that based
on RISCV32IMAC, for example:
```
cmake -B build -DBOARD_CONFIG=rv-virt:nsh -GNinja .
```

And disable ARCH_FPU in menuconfig, since the hard coded target triple
in this demo is `riscv32imac`.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-01-10 22:25:13 +08:00
..
Wasm tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
bitmap_converter.py Remove unneeded semicolons and parentheses from Python files 2020-12-12 19:20:38 +01:00
check-hash.sh tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
CMakeLists.txt tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Kconfig Fix Kconfig style 2024-04-09 08:16:40 +02:00
mkimport.sh tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
mkkconfig.bat tools: update licenses to Apache 2021-06-10 08:49:24 -05:00
mkkconfig.sh tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
mkromfsimg.sh tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
mksymtab.sh tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
pre-commit tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Rust.mk examples: New app to build Rust with Cargo 2025-01-10 22:25:13 +08:00
WASI-SDK.defs tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Wasm.mk tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00