From 4005235976c0449a7972dc6a383fa3cbe9592c1a Mon Sep 17 00:00:00 2001 From: chrysn Date: Wed, 31 Jan 2024 17:15:08 +0100 Subject: [PATCH] makefiles/rust: Show the exported environment in `make info-rust` Contributes-To: https://github.com/RIOT-OS/RIOT/issues/20088 --- makefiles/info.inc.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/makefiles/info.inc.mk b/makefiles/info.inc.mk index 58f771571639..9149479c6849 100644 --- a/makefiles/info.inc.mk +++ b/makefiles/info.inc.mk @@ -251,3 +251,8 @@ info-programmers-supported: info-rust: cargo version c2rust --version + @echo "To use this setup of Rust in an IDE, add these command line arguments to the \`cargo check\` or \`rust-analyzer\`:" + @echo " --target $(RUST_TARGET) --profile $(CARGO_PROFILE)" + @echo "and export these environment variables:" + @echo " RIOT_COMPILE_COMMANDS_JSON=\"$(CARGO_COMPILE_COMMANDS)\"" + @echo " RIOT_USEMODULE=\"$(USEMODULE)\""