Skip to content

Commit 5c88d93

Browse files
committed
Auto merge of rust-lang#12118 - randomicon00:fix#12102, r=lnicola
style: rename crates to kebab-case Ref: rust-lang#12102 I updated all the folders names as well as the crates names in each `Cargo.toml` to use kebab-case. This is my first ra PR. In case I missed something, I am ready/available to fix it until it is ready to merge. Thank you.
2 parents e025b37 + aade319 commit 5c88d93

File tree

462 files changed

+177
-177
lines changed

Some content is hidden

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

462 files changed

+177
-177
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
22
members = ["xtask/", "lib/*", "crates/*"]
3-
exclude = ["crates/proc_macro_test/imp"]
3+
exclude = ["crates/proc-macro-test/imp"]
44

55
[profile.dev]
66
# Disabling debug info speeds up builds a bunch,

crates/base_db/Cargo.toml renamed to crates/base-db/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "base_db"
2+
name = "base-db"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
@@ -18,5 +18,5 @@ stdx = { path = "../stdx", version = "0.0.0" }
1818
cfg = { path = "../cfg", version = "0.0.0" }
1919
profile = { path = "../profile", version = "0.0.0" }
2020
tt = { path = "../tt", version = "0.0.0" }
21-
test_utils = { path = "../test_utils", version = "0.0.0" }
21+
test-utils = { path = "../test-utils", version = "0.0.0" }
2222
vfs = { path = "../vfs", version = "0.0.0" }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

crates/hir_def/Cargo.toml renamed to crates/hir-def/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "hir_def"
2+
name = "hir-def"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
@@ -29,15 +29,15 @@ arrayvec = "0.7.2"
2929
la-arena = { version = "0.3.0", path = "../../lib/arena" }
3030

3131
stdx = { path = "../stdx", version = "0.0.0" }
32-
base_db = { path = "../base_db", version = "0.0.0" }
32+
base-db = { path = "../base-db", version = "0.0.0" }
3333
syntax = { path = "../syntax", version = "0.0.0" }
3434
profile = { path = "../profile", version = "0.0.0" }
35-
hir_expand = { path = "../hir_expand", version = "0.0.0" }
35+
hir-expand = { path = "../hir-expand", version = "0.0.0" }
3636
mbe = { path = "../mbe", version = "0.0.0" }
3737
cfg = { path = "../cfg", version = "0.0.0" }
3838
tt = { path = "../tt", version = "0.0.0" }
3939
limit = { path = "../limit", version = "0.0.0" }
4040

4141
[dev-dependencies]
42-
test_utils = { path = "../test_utils" }
42+
test-utils = { path = "../test-utils" }
4343
expect-test = "1.2.2"
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.
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.
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.
File renamed without changes.
File renamed without changes.

crates/hir_expand/Cargo.toml renamed to crates/hir-expand/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "hir_expand"
2+
name = "hir-expand"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
@@ -20,7 +20,7 @@ hashbrown = { version = "0.12.0", features = [
2020
"inline-more",
2121
], default-features = false }
2222

23-
base_db = { path = "../base_db", version = "0.0.0" }
23+
base-db = { path = "../base-db", version = "0.0.0" }
2424
cfg = { path = "../cfg", version = "0.0.0" }
2525
syntax = { path = "../syntax", version = "0.0.0" }
2626
profile = { path = "../profile", version = "0.0.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.

crates/hir_ty/Cargo.toml renamed to crates/hir-ty/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "hir_ty"
2+
name = "hir-ty"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
@@ -26,15 +26,15 @@ once_cell = "1.10.0"
2626
typed-arena = "2.0.1"
2727

2828
stdx = { path = "../stdx", version = "0.0.0" }
29-
hir_def = { path = "../hir_def", version = "0.0.0" }
30-
hir_expand = { path = "../hir_expand", version = "0.0.0" }
31-
base_db = { path = "../base_db", version = "0.0.0" }
29+
hir-def = { path = "../hir-def", version = "0.0.0" }
30+
hir-expand = { path = "../hir-expand", version = "0.0.0" }
31+
base-db = { path = "../base-db", version = "0.0.0" }
3232
profile = { path = "../profile", version = "0.0.0" }
3333
syntax = { path = "../syntax", version = "0.0.0" }
3434
limit = { path = "../limit", version = "0.0.0" }
3535

3636
[dev-dependencies]
37-
test_utils = { path = "../test_utils" }
37+
test-utils = { path = "../test-utils" }
3838
expect-test = "1.2.2"
3939
tracing = "0.1.32"
4040
tracing-subscriber = { version = "0.3.9", default-features = false, features = [
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.
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.
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.
File renamed without changes.

crates/hir/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ once_cell = "1.10.0"
1919

2020
stdx = { path = "../stdx", version = "0.0.0" }
2121
syntax = { path = "../syntax", version = "0.0.0" }
22-
base_db = { path = "../base_db", version = "0.0.0" }
22+
base-db = { path = "../base-db", version = "0.0.0" }
2323
profile = { path = "../profile", version = "0.0.0" }
24-
hir_expand = { path = "../hir_expand", version = "0.0.0" }
25-
hir_def = { path = "../hir_def", version = "0.0.0" }
26-
hir_ty = { path = "../hir_ty", version = "0.0.0" }
24+
hir-expand = { path = "../hir-expand", version = "0.0.0" }
25+
hir-def = { path = "../hir-def", version = "0.0.0" }
26+
hir-ty = { path = "../hir-ty", version = "0.0.0" }
2727
tt = { path = "../tt", version = "0.0.0" }
2828
cfg = { path = "../cfg", version = "0.0.0" }

crates/ide_assists/Cargo.toml renamed to crates/ide-assists/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "ide_assists"
2+
name = "ide-assists"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
@@ -17,12 +17,12 @@ either = "1.6.1"
1717

1818
stdx = { path = "../stdx", version = "0.0.0" }
1919
syntax = { path = "../syntax", version = "0.0.0" }
20-
text_edit = { path = "../text_edit", version = "0.0.0" }
20+
text-edit = { path = "../text-edit", version = "0.0.0" }
2121
profile = { path = "../profile", version = "0.0.0" }
22-
ide_db = { path = "../ide_db", version = "0.0.0" }
22+
ide-db = { path = "../ide-db", version = "0.0.0" }
2323
hir = { path = "../hir", version = "0.0.0" }
2424

2525
[dev-dependencies]
26-
test_utils = { path = "../test_utils" }
26+
test-utils = { path = "../test-utils" }
2727
sourcegen = { path = "../sourcegen" }
2828
expect-test = "1.2.2"
File renamed without changes.
File renamed without changes.

crates/ide_assists/src/tests/sourcegen.rs renamed to crates/ide-assists/src/tests/sourcegen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ r#####"
4141
}
4242
let buf = sourcegen::add_preamble("sourcegen_assists_docs", sourcegen::reformat(buf));
4343
sourcegen::ensure_file_contents(
44-
&project_root().join("crates/ide_assists/src/tests/generated.rs"),
44+
&project_root().join("crates/ide-assists/src/tests/generated.rs"),
4545
&buf,
4646
);
4747
}
@@ -75,7 +75,7 @@ struct Assist {
7575

7676
impl Assist {
7777
fn collect() -> Vec<Assist> {
78-
let handlers_dir = project_root().join("crates/ide_assists/src/handlers");
78+
let handlers_dir = project_root().join("crates/ide-assists/src/handlers");
7979

8080
let mut res = Vec::new();
8181
for path in sourcegen::list_rust_files(&handlers_dir) {
File renamed without changes.

crates/ide_completion/Cargo.toml renamed to crates/ide-completion/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "ide_completion"
2+
name = "ide-completion"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
@@ -18,16 +18,16 @@ smallvec = "1.8.0"
1818

1919
stdx = { path = "../stdx", version = "0.0.0" }
2020
syntax = { path = "../syntax", version = "0.0.0" }
21-
text_edit = { path = "../text_edit", version = "0.0.0" }
22-
base_db = { path = "../base_db", version = "0.0.0" }
23-
ide_db = { path = "../ide_db", version = "0.0.0" }
21+
text-edit = { path = "../text-edit", version = "0.0.0" }
22+
base-db = { path = "../base-db", version = "0.0.0" }
23+
ide-db = { path = "../ide-db", version = "0.0.0" }
2424
profile = { path = "../profile", version = "0.0.0" }
2525

2626
# completions crate should depend only on the top-level `hir` package. if you need
27-
# something from some `hir_xxx` subpackage, reexport the API via `hir`.
27+
# something from some `hir-xxx` subpackage, reexport the API via `hir`.
2828
hir = { path = "../hir", version = "0.0.0" }
2929

3030
[dev-dependencies]
3131
expect-test = "1.2.2"
3232

33-
test_utils = { path = "../test_utils" }
33+
test-utils = { path = "../test-utils" }
File renamed without changes.
File renamed without changes.

crates/ide_db/Cargo.toml renamed to crates/ide-db/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "ide_db"
2+
name = "ide-db"
33
version = "0.0.0"
44
description = "TBD"
55
license = "MIT OR Apache-2.0"
@@ -24,16 +24,16 @@ indexmap = "1.8.0"
2424
stdx = { path = "../stdx", version = "0.0.0" }
2525
parser = { path = "../parser", version = "0.0.0" }
2626
syntax = { path = "../syntax", version = "0.0.0" }
27-
text_edit = { path = "../text_edit", version = "0.0.0" }
28-
base_db = { path = "../base_db", version = "0.0.0" }
27+
text-edit = { path = "../text-edit", version = "0.0.0" }
28+
base-db = { path = "../base-db", version = "0.0.0" }
2929
profile = { path = "../profile", version = "0.0.0" }
3030
# ide should depend only on the top-level `hir` package. if you need
31-
# something from some `hir_xxx` subpackage, reexport the API via `hir`.
31+
# something from some `hir-xxx` subpackage, reexport the API via `hir`.
3232
hir = { path = "../hir", version = "0.0.0" }
3333
limit = { path = "../limit", version = "0.0.0" }
3434

3535
[dev-dependencies]
36-
test_utils = { path = "../test_utils" }
36+
test-utils = { path = "../test-utils" }
3737
sourcegen = { path = "../sourcegen" }
3838
xshell = "0.2.1"
3939
expect-test = "1.2.2"
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)