nuttx-apps/tools
Shoji Tokunaga 99a2aa7112 examples/rust: Avoid the infinite loop on sim for hello_rust_cargo
On the sim target (Windows/macOS/Linux), hello_rust_cargo_main() ended
with an infinite `loop {}` that never returned control to NSH, so the
example could not exit and the shell prompt hung.

Introduce a Cargo `sim` feature that is enabled only when CONFIG_ARCH_SIM
is set, and use it to compile out the trailing infinite loop and return 0
instead. Other embedded targets keep the original looping behavior.

Signed-off-by: Shoji Tokunaga <toku@mac.com>
2026-06-16 09:37:55 +09:00
..
Wasm cmake(bugfix):fix NuttX CMake Wasm build multi dirs cannot be identified 2025-01-23 14:26:08 +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 cmake(bugfix):fix NuttX CMake Wasm build multi dirs cannot be identified 2025-01-23 14:26:08 +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 elf:avoid interference between different ELFs generated by symtab 2026-01-16 21:07:56 +08:00
pre-commit tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Rust.mk examples/rust: Avoid the infinite loop on sim for hello_rust_cargo 2026-06-16 09:37:55 +09: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