nuttx-apps/examples/rust
Shoji Tokunaga d1202bd501 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-20 10:33:46 -03:00
..
baremetal examples/rust: Rename hello_rust to rust/baremetal 2025-01-15 01:53:56 +08:00
hello examples/rust: Avoid the infinite loop on sim for hello_rust_cargo 2026-06-20 10:33:46 -03:00
slint apps/rust: Add dependencies for Rust cargo in make builds 2026-06-04 08:58:07 -03:00
.gitignore examples: New app to build Rust with Cargo 2025-01-10 22:25:13 +08:00
CMakeLists.txt examples: New app to build Rust with Cargo 2025-01-10 22:25:13 +08:00
Make.defs examples: New app to build Rust with Cargo 2025-01-10 22:25:13 +08:00
Makefile examples: New app to build Rust with Cargo 2025-01-10 22:25:13 +08:00