diff --git a/examples/hello_rust/Kconfig b/examples/rust/baremetal/Kconfig similarity index 84% rename from examples/hello_rust/Kconfig rename to examples/rust/baremetal/Kconfig index 92e3b1f34..a1b391bee 100644 --- a/examples/hello_rust/Kconfig +++ b/examples/rust/baremetal/Kconfig @@ -7,7 +7,8 @@ config EXAMPLES_HELLO_RUST tristate "\"Hello, Rust!\" example" default n ---help--- - Enable the \"Hello, Rust!\" example + Enable the \"Hello, Rust!\" example to show how to build + and run a baremetal Rust application with rustc. if EXAMPLES_HELLO_RUST diff --git a/examples/hello_rust/Make.defs b/examples/rust/baremetal/Make.defs similarity index 91% rename from examples/hello_rust/Make.defs rename to examples/rust/baremetal/Make.defs index 7cb3099d2..9ea1b9f9f 100644 --- a/examples/hello_rust/Make.defs +++ b/examples/rust/baremetal/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# apps/examples/hello_rust/Make.defs +# apps/examples/rust/baremetal/Make.defs # # SPDX-License-Identifier: Apache-2.0 # @@ -21,5 +21,5 @@ ############################################################################ ifneq ($(CONFIG_EXAMPLES_HELLO_RUST),) -CONFIGURED_APPS += $(APPDIR)/examples/hello_rust +CONFIGURED_APPS += $(APPDIR)/examples/rust/baremetal endif diff --git a/examples/hello_rust/Makefile b/examples/rust/baremetal/Makefile similarity index 97% rename from examples/hello_rust/Makefile rename to examples/rust/baremetal/Makefile index b1ac1824c..55e98ce7b 100644 --- a/examples/hello_rust/Makefile +++ b/examples/rust/baremetal/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# apps/examples/hello_rust/Makefile +# apps/examples/rust/baremetal/Makefile # # SPDX-License-Identifier: Apache-2.0 # diff --git a/examples/hello_rust/hello_rust_main.rs b/examples/rust/baremetal/hello_rust_main.rs similarity index 98% rename from examples/hello_rust/hello_rust_main.rs rename to examples/rust/baremetal/hello_rust_main.rs index fa24671cd..3d7a3eceb 100644 --- a/examples/hello_rust/hello_rust_main.rs +++ b/examples/rust/baremetal/hello_rust_main.rs @@ -1,5 +1,5 @@ /**************************************************************************** - * apps/examples/hello_rust/hello_rust_main.rs + * apps/examples/rust/baremetal/hello_rust_main.rs * * SPDX-License-Identifier: Apache-2.0 *