Rust: Difference between revisions
m →Developing Rust projects using Nix: use internet archive link for srid.ca/rust-nix |
m →Shell.nix example: use monospace font for RUST_SRC_PATH |
||
| Line 322: | Line 322: | ||
) { } | ) { } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
This will have the stable Rust compiler + the official formatter and linter inside the ephemeral shell. It'll also set the RUST_SRC_PATH environment variable to point to the right location, which tools, such as rust-analyzer, require to be set. | This will have the stable Rust compiler + the official formatter and linter inside the ephemeral shell. It'll also set the <code>RUST_SRC_PATH</code> environment variable to point to the right location, which tools, such as rust-analyzer, require to be set. | ||
=== Custom Rust version or targets === | === Custom Rust version or targets === | ||