Hello Rustacians! I've just began to learn Rust and started to creation of my pre-configured template for VSCode with set of features like Valgrind reports generation, maybe it will be useful for someone else too.
I have a question about rust-analyzer extension: is there any way to get target path to executable in VSCode, i.e. in C++ project and CMake extension I can use ${command:cmake.targetLaunchPath}. Is there anything like that for Rust?
great. I suggest you also add the #cargo-generate topic tag.
to my knowledge, there's no such command from rust-analyzer. but rust-analyzer does have a command to generate a launch configuration entry, if that's what you want to do: command id is rust-analyzer.newDebugConfig, command name is "rust-analyzer: Generate launch configuration"
note it's an interactive command, you must have a rust file open when you run this command, then it will pop up a quick select list of all the targets in the current project. I don't know if you can call it procedurally though.