Skip to content

Commit e09b0ef

Browse files
committed
Remove workspace
1 parent e254753 commit e09b0ef

File tree

1,218 files changed

+105
-237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,218 files changed

+105
-237
lines changed

Cargo.lock

Lines changed: 4 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 87 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,56 +7,118 @@ description = "Tool to find and fix Rust formatting issues"
77
repository = "https://github.com/rust-lang/rustfmt"
88
readme = "README.md"
99
license = "Apache-2.0/MIT"
10-
build = "rustfmt-core/rustfmt-bin/build.rs"
10+
build = "build.rs"
1111
categories = ["development-tools"]
1212
edition = "2018"
1313

1414
[[bin]]
1515
name = "rustfmt"
16-
path = "rustfmt-core/rustfmt-bin/src/bin/main.rs"
17-
test = false
16+
path = "src/rustfmt/main.rs"
1817

1918
[[bin]]
2019
name = "cargo-fmt"
21-
path = "rustfmt-core/rustfmt-bin/src/cargo-fmt/main.rs"
22-
test = false
20+
path = "src/cargo-fmt/main.rs"
2321

2422
[[bin]]
2523
name = "rustfmt-format-diff"
26-
path = "rustfmt-core/rustfmt-bin/src/format-diff/main.rs"
27-
test = false
24+
path = "src/format-diff/main.rs"
2825

2926
[[bin]]
3027
name = "git-rustfmt"
31-
path = "rustfmt-core/rustfmt-bin/src/git-rustfmt/main.rs"
32-
test = false
28+
path = "src/git-rustfmt/main.rs"
3329

3430
[features]
35-
default = ["cargo-fmt", "rustfmt-format-diff"]
36-
cargo-fmt = ["cargo_metadata"]
37-
rustfmt-format-diff = ["regex", "serde", "serde_json"]
38-
generic-simd = ["rustfmt_lib/generic-simd"]
31+
default = ["cargo-fmt", "config", "emitter", "rustfmt-format-diff"]
32+
cargo-fmt = ["cargo_metadata", "structopt"]
33+
rustfmt-format-diff = [
34+
"env_logger",
35+
"serde",
36+
"serde_json",
37+
"structopt",
38+
]
39+
40+
config = [
41+
"dirs",
42+
"rustfmt-config_proc_macro",
43+
"serde",
44+
"serde_json",
45+
"toml",
46+
]
47+
48+
emitter = [
49+
"config",
50+
"diff",
51+
"serde",
52+
"serde_json",
53+
"term",
54+
]
55+
56+
rustfmt = [
57+
"structopt",
58+
]
3959

4060
[dependencies]
61+
annotate-snippets = { version = "0.8", features = ["color"] }
4162
anyhow = "1.0"
63+
bytecount = "0.6"
4264
dunce = "1.0"
43-
env_logger = "0.7"
65+
ignore = "0.4.11"
66+
itertools = "0.8"
67+
lazy_static = "1.0.0"
4468
log = "0.4"
45-
structopt = "0.3"
46-
term = "0.6"
69+
regex = "1.0"
4770
thiserror = "1.0"
71+
unicode_categories = "0.1.1"
72+
unicode-segmentation = "1.0.0"
73+
unicode-width = "0.1.5"
74+
75+
# A noop dependency that changes in the Rust repository, it's a bit of a hack.
76+
# See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`
77+
# for more information.
78+
rustc-workspace-hack = "1.0.0"
4879

4980
cargo_metadata = { version = "0.9", optional = true }
50-
regex = { version = "1.0", optional = true }
51-
serde = { version = "1.0", optional = true }
81+
diff = { version = "0.1", optional = true}
82+
dirs = { version = "2.0", optional = true }
83+
env_logger = { version = "0.7", optional = true }
84+
rustfmt-config_proc_macro = { version = "0.5", path = "config_proc_macro", optional = true }
85+
serde = { version = "1.0", features = ["derive"], optional = true }
5286
serde_json = { version = "1.0", optional = true }
53-
54-
rustfmt_lib = { path = "rustfmt-core/rustfmt-lib", version = "2.0.0-rc.2" }
87+
structopt = { version = "0.3", optional = true }
88+
term = { version = "0.6", optional = true }
89+
toml = { version = "0.5", optional = true }
5590

5691
[dev-dependencies]
57-
lazy_static = "1.0"
92+
env_logger = "0.7"
5893

59-
# A noop dependency that changes in the Rust repository, it's a bit of a hack.
60-
# See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`
61-
# for more information.
62-
rustc-workspace-hack = "1.0.0"
94+
[dependencies.rustc_ast]
95+
package = "rustc-ap-rustc_ast"
96+
version = "659.0.0"
97+
98+
[dependencies.rustc_ast_pretty]
99+
package = "rustc-ap-rustc_ast_pretty"
100+
version = "659.0.0"
101+
102+
[dependencies.rustc_data_structures]
103+
package = "rustc-ap-rustc_data_structures"
104+
version = "659.0.0"
105+
106+
[dependencies.rustc_errors]
107+
package = "rustc-ap-rustc_errors"
108+
version = "659.0.0"
109+
110+
[dependencies.rustc_expand]
111+
package = "rustc-ap-rustc_expand"
112+
version = "659.0.0"
113+
114+
[dependencies.rustc_parse]
115+
package = "rustc-ap-rustc_parse"
116+
version = "659.0.0"
117+
118+
[dependencies.rustc_session]
119+
package = "rustc-ap-rustc_session"
120+
version = "659.0.0"
121+
122+
[dependencies.rustc_span]
123+
package = "rustc-ap-rustc_span"
124+
version = "659.0.0"

Makefile.toml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,13 @@ args = [
1010
"--locked",
1111
]
1212

13-
[tasks.test]
14-
clear = true
15-
run_task = { name = ["test-bin", "test-lib"] }
13+
[tasks.test-all]
14+
run_task = { name = ["test", "test-ignored"] }
1615

17-
[tasks.test-bin]
18-
env = { "RUSTFMT_MAKE_MANIFEST_PATH" = "rustfmt-core/rustfmt-bin/Cargo.toml" }
19-
run_task = "test-subproject"
20-
21-
[tasks.test-lib]
22-
env = { "RUSTFMT_MAKE_MANIFEST_PATH" = "rustfmt-core/rustfmt-lib/Cargo.toml" }
23-
run_task = "test-subproject"
24-
25-
[tasks.test-subproject]
26-
condition = { env_set = ["RUSTFMT_MAKE_MANIFEST_PATH"] }
27-
script_runner = "@shell"
28-
script = [
29-
"cargo test --manifest-path ${RUSTFMT_MAKE_MANIFEST_PATH}",
30-
"cargo test --manifest-path ${RUSTFMT_MAKE_MANIFEST_PATH} -- --ignored",
16+
[tasks.test-ignored]
17+
command = "cargo"
18+
args = [
19+
"test",
20+
"--",
21+
"--ignored",
3122
]
File renamed without changes.

rustfmt-core/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

rustfmt-core/Cargo.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

rustfmt-core/Makefile.toml

Lines changed: 0 additions & 4 deletions
This file was deleted.

rustfmt-core/rustfmt-bin/Cargo.toml

Lines changed: 0 additions & 48 deletions
This file was deleted.

rustfmt-core/rustfmt-lib/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)