Skip to content

Split out a rustfmt-core crate #1583

Closed
Closed
@nrc

Description

@nrc

Motivation is to have a crate which can be used as a library (e.g., by RLS, Rustdoc) with minimal deps.

We would split out a rustfmt-bin crate which would include the current bin directory, anything for parsing config files, doing diffs, output to terminal, etc. The rustfmt-core crate would be left with just the core reformatting stuff. The trickiest bit of this is that the core crate will need to contain the actual in-memory config, but the config file parsing should be in the bin crate. I think that means we either have to define the config in two places (not very DRY, but tolerable) or use a fancy build script.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions