rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.1k stars 176 forks source link

Support envrc #447

Closed glasserc closed 2 years ago

glasserc commented 2 years ago

Fixes #446.

I didn't see any tests for this code and wasn't exactly sure how to add one. However, I tested it by eval'ing the updated function in my emacs session and running rust-test. Before the change, it would error out, and after it successfully runs the tests.

It turns out setting process-environment wasn't enough for my situation so I set exec-path as well.

rust-highfive commented 2 years ago

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brotzeit (or someone else) soon.

Please see the contribution instructions for more information.

brotzeit commented 2 years ago

Thanks!