Skip to content

Commit

Permalink
makefiles/rust: Show the exported environment in make info-rust
Browse files Browse the repository at this point in the history
Contributes-To: RIOT-OS#20088
  • Loading branch information
chrysn committed Jan 31, 2024
1 parent 740f7c7 commit 4005235
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions makefiles/info.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)\""

0 comments on commit 4005235

Please sign in to comment.