-
Notifications
You must be signed in to change notification settings - Fork 889
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move rustfmt binariy crates to workspace (#4002)
- Loading branch information
1 parent
b76fff3
commit e8da49a
Showing
29 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[workspace] | ||
members = [ | ||
"rustfmt-bin", | ||
"rustfmt-config", | ||
"rustfmt-emitter", | ||
"rustfmt-lib", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[package] | ||
|
||
# The metadata of this crate is intentionally removed to avoid publishing this crate by accident. | ||
name = "rustfmt-bin" | ||
version = "2.0.0-rc.1" | ||
edition = "2018" | ||
|
||
[[bin]] | ||
name = "rustfmt" | ||
path = "src/bin/main.rs" | ||
|
||
[[bin]] | ||
name = "cargo-fmt" | ||
path = "src/cargo-fmt/main.rs" | ||
|
||
[[bin]] | ||
name = "rustfmt-format-diff" | ||
path = "src/format-diff/main.rs" | ||
|
||
[[bin]] | ||
name = "git-rustfmt" | ||
path = "src/git-rustfmt/main.rs" | ||
|
||
[features] | ||
default = ["cargo-fmt", "rustfmt-format-diff"] | ||
cargo-fmt = [] | ||
rustfmt-format-diff = [] | ||
generic-simd = ["rustfmt_lib/generic-simd"] | ||
|
||
[dependencies] | ||
ansi_term = "0.12" | ||
anyhow = "1.0" | ||
cargo_metadata = "0.9" | ||
env_logger = "0.7" | ||
getopts = "0.2" | ||
log = "0.4" | ||
regex = "1.0" | ||
serde = "1.0" | ||
serde_json = "1.0" | ||
structopt = "0.3" | ||
term = "0.6" | ||
thiserror = "1.0" | ||
|
||
rustfmt_lib = { path = "../rustfmt-lib", version = "1.0" } | ||
|
||
[dev-dependencies] | ||
lazy_static = "1.0" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ version = "0.1.0" | |
authors = ["rustfmt devs <awesome@gmail.com>"] | ||
|
||
[dependencies] | ||
|
||
[workspace] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ version = "0.1.0" | |
authors = ["rustfmt devs <awesome@gmail.com>"] | ||
|
||
[dependencies] | ||
|
||
[workspace] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ version = "0.1.0" | |
authors = ["rustfmt devs <awesome@gmail.com>"] | ||
|
||
[dependencies] | ||
|
||
[workspace] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ authors = ["rustfmt devs <awesome@gmail.com>"] | |
edition = "2018" | ||
|
||
[dependencies] | ||
|
||
[workspace] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.