mitranim / sublime-rust-fmt

Sublime Text plugin that formats Rust code with rustfmt
30 stars 3 forks source link

Allow to use rustfmt-nightly #2

Closed Phaiax closed 7 years ago

Phaiax commented 7 years ago

It would be cool if I could write

// RustFmt Settings - User
{
    "executable": "rustup run nightly rustfmt"
}

That would allow me to use rustfmt-nightly on stable projects.

Thanks, Daniel

mitranim commented 7 years ago

Pushed new version: https://github.com/Mitranim/sublime-rust-fmt/releases/tag/0.1.3

The executable setting now accepts either a string (as before) or a list of command line arguments:

  "executable": ["rustup", "run", "nightly", "rustfmt"]

Let me know how it works.

(Note: it takes Package Control 1-2 hours to notice a new release)

Phaiax commented 7 years ago

It works, thanks a lot. That was fast. :+1: