nuttx-apps/examples/rust/hello
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
..
src examples/rust: Avoid the infinite loop on sim for hello_rust_cargo 2026-06-16 09:37:55 +09:00
.gitignore examples: New app to build Rust with Cargo 2025-01-10 22:25:13 +08:00
Cargo.toml examples/rust: Avoid the infinite loop on sim for hello_rust_cargo 2026-06-16 09:37:55 +09:00
CMakeLists.txt examples/rust: Avoid the infinite loop on sim for hello_rust_cargo 2026-06-16 09:37:55 +09:00
Kconfig examples: New app to build Rust with Cargo 2025-01-10 22:25:13 +08:00
Make.defs [nxstyle] fix Relative file path 2025-02-21 16:29:13 -05:00
Makefile examples/rust: Avoid the infinite loop on sim for hello_rust_cargo 2026-06-16 09:37:55 +09:00