Rust run configurations
To run a program, you can use run configurations. It allows you to customize the startup: add command line arguments, use custom commands, and so on.
To create a run configuration, you need to create run.json.
Examples of run configurations
The following code snippet shows examples of different run configurations. See the descriptions of the fields in the Cargo section.
cargo
Runs cargo via `cargo $cargoArgs $cargoExtraArgs -- $executableArgs`
| Custom environment variables for the process, specified as a JSON object. To define an environment variable, add a property where the key is the variable name and the value is its value. For example:
"environment": {
"TEMP_DIR": "/home/user/temp",
"GENERATE_RANDOM_PASSWORD": "true"
}
|
| Names of other configurations to run before this configuration. For example: |
| Working directory for the run configuration. |
| If set to |
| Arguments to be passed to cargo Default value: |
| Extra arguments to be passed to cargo Default value: |
| Arguments to the program executed by cargo. These arguments go after '--' in the cargo command. Default value: |
Example: