1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-14 09:03:50 +01:00
chrysn c3ebae38f7 examples/rust: Simplify Makefiles
The APPLICATION_RUST_MODULE declaration is moved to a more prominent
position, given that it is now not part of a cesspool of boilerplate any
more.
2025-02-21 23:52:11 +01:00

31 lines
871 B
Makefile

# name of your application
APPLICATION = rust-async
# The name of crate (as per Cargo.toml package name, but with '-' replaced with '_')
#
# The presence of this triggers building Rust code contained in this
# application in addition to any C code.
APPLICATION_RUST_MODULE = rust_async
# If no BOARD is found in the environment, use this default:
BOARD ?= native
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../../../..
# Some timers for the example
USEMODULE += ztimer_msec
# Required by the async executor
USEMODULE += core_thread_flags
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
DEVELHELP ?= 1
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1
include $(RIOTBASE)/Makefile.include