Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Make rustfmt an optional dependency #617

Merged
merged 1 commit into from
Dec 7, 2017
Merged

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Dec 6, 2017

Proof of concept for #149 (comment)

@oli-obk oli-obk force-pushed the master branch 2 times, most recently from 5ebf9b7 to fdceb35 Compare December 6, 2017 16:18
@nrc
Copy link
Member

nrc commented Dec 6, 2017

How would rustfmt get disabled in the Rust repo?

@oli-obk
Copy link
Contributor Author

oli-obk commented Dec 6, 2017

I'd check the compilation state of rustfmt before building rls and choose different features depending on that.

@nrc
Copy link
Member

nrc commented Dec 7, 2017

sorry, to be clear, my question was how you would choose different features - do you know if that is possible from the Rust build system today?

@oli-obk
Copy link
Contributor Author

oli-obk commented Dec 7, 2017

Oh it's not possible yet. But without adding this first, it's annoying to prototype.

@nrc
Copy link
Member

nrc commented Dec 7, 2017

Ah, ok that makes sense. Thanks for the PR!

@nrc nrc merged commit 5f4e1d2 into rust-lang:master Dec 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants