#rustlang folks… Building tools/dependencies from source is generally great, but CI on travis always takes >10 mins to build rustfmt (to spend <1s actually checking code). Any tips to avoid this?
-
-
Replying to @illicitonion
Are you getting it via cargo install? Instead, use rustfmt like this: $ rustup component add rustfmt-preview Then, you won’t need to do a full compile each time. Bonus: if you do this locally, you only need it once: when you update rust, it updates!
1 reply 1 retweet 9 likes -
Replying to @rustlang
Interesting! Will give it a try, thanks! Is the update model documented somewhere? If I always want to be using a fixed version, and only want the version to change when I change a checked in file, can I do that?
1 reply 0 retweets 0 likes -
Replying to @illicitonion
So, rustfmt relies on compiler internals; this means that the versioning isn’t guaranteed across a huge variety of rust versions. Maybe
@nick_r_cameron can say more? But generally, the answer as I understand it is “no”.1 reply 0 retweets 0 likes -
Replying to @rustlang @nick_r_cameron
We pin the version of rust that we use in a file; as long as those are updated together it sounds fine… If rustup will always install version X for rust version Y we're happy. But want to avoid two people checking out same code at different times being told different formattings
1 reply 0 retweets 0 likes
Ah yes. It’s tied to the rust version, so it will stay the same until you update rust 
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.