diff --git a/Cargo.lock b/Cargo.lock index 2850895d659..051906f87c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -92,7 +92,7 @@ dependencies = [ ] [[package]] -name = "base_db" +name = "base-db" version = "0.0.0" dependencies = [ "cfg", @@ -101,7 +101,7 @@ dependencies = [ "salsa", "stdx", "syntax", - "test_utils", + "test-utils", "tt", "vfs", ] @@ -474,12 +474,12 @@ name = "hir" version = "0.0.0" dependencies = [ "arrayvec", - "base_db", + "base-db", "cfg", "either", - "hir_def", - "hir_expand", - "hir_ty", + "hir-def", + "hir-expand", + "hir-ty", "itertools", "once_cell", "profile", @@ -491,12 +491,12 @@ dependencies = [ ] [[package]] -name = "hir_def" +name = "hir-def" version = "0.0.0" dependencies = [ "anymap", "arrayvec", - "base_db", + "base-db", "bitflags", "cfg", "cov-mark", @@ -505,7 +505,7 @@ dependencies = [ "either", "expect-test", "fst", - "hir_expand", + "hir-expand", "indexmap", "itertools", "la-arena", @@ -519,16 +519,16 @@ dependencies = [ "smallvec", "stdx", "syntax", - "test_utils", + "test-utils", "tracing", "tt", ] [[package]] -name = "hir_expand" +name = "hir-expand" version = "0.0.0" dependencies = [ - "base_db", + "base-db", "cfg", "cov-mark", "either", @@ -546,19 +546,19 @@ dependencies = [ ] [[package]] -name = "hir_ty" +name = "hir-ty" version = "0.0.0" dependencies = [ "arrayvec", - "base_db", + "base-db", "chalk-ir", "chalk-recursive", "chalk-solve", "cov-mark", "ena", "expect-test", - "hir_def", - "hir_expand", + "hir-def", + "hir-expand", "itertools", "la-arena", "limit", @@ -569,7 +569,7 @@ dependencies = [ "smallvec", "stdx", "syntax", - "test_utils", + "test-utils", "tracing", "tracing-subscriber", "tracing-tree", @@ -596,11 +596,11 @@ dependencies = [ "either", "expect-test", "hir", - "ide_assists", - "ide_completion", - "ide_db", - "ide_diagnostics", - "ide_ssr", + "ide-assists", + "ide-completion", + "ide-db", + "ide-diagnostics", + "ide-ssr", "itertools", "oorandom", "profile", @@ -608,56 +608,56 @@ dependencies = [ "pulldown-cmark-to-cmark", "stdx", "syntax", - "test_utils", - "text_edit", + "test-utils", + "text-edit", "toolchain", "tracing", "url", ] [[package]] -name = "ide_assists" +name = "ide-assists" version = "0.0.0" dependencies = [ "cov-mark", "either", "expect-test", "hir", - "ide_db", + "ide-db", "itertools", "profile", "sourcegen", "stdx", "syntax", - "test_utils", - "text_edit", + "test-utils", + "text-edit", ] [[package]] -name = "ide_completion" +name = "ide-completion" version = "0.0.0" dependencies = [ - "base_db", + "base-db", "cov-mark", "expect-test", "hir", - "ide_db", + "ide-db", "itertools", "once_cell", "profile", "smallvec", "stdx", "syntax", - "test_utils", - "text_edit", + "test-utils", + "text-edit", ] [[package]] -name = "ide_db" +name = "ide-db" version = "0.0.0" dependencies = [ "arrayvec", - "base_db", + "base-db", "cov-mark", "either", "expect-test", @@ -674,14 +674,14 @@ dependencies = [ "sourcegen", "stdx", "syntax", - "test_utils", - "text_edit", + "test-utils", + "text-edit", "tracing", "xshell", ] [[package]] -name = "ide_diagnostics" +name = "ide-diagnostics" version = "0.0.0" dependencies = [ "cfg", @@ -689,29 +689,29 @@ dependencies = [ "either", "expect-test", "hir", - "ide_db", + "ide-db", "itertools", "profile", "sourcegen", "stdx", "syntax", - "test_utils", - "text_edit", + "test-utils", + "text-edit", ] [[package]] -name = "ide_ssr" +name = "ide-ssr" version = "0.0.0" dependencies = [ "cov-mark", "expect-test", "hir", - "ide_db", + "ide-db", "itertools", "parser", "syntax", - "test_utils", - "text_edit", + "test-utils", + "text-edit", ] [[package]] @@ -913,7 +913,7 @@ dependencies = [ "smallvec", "stdx", "syntax", - "test_utils", + "test-utils", "tracing", "tt", ] @@ -1180,16 +1180,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c" [[package]] -name = "proc-macro2" -version = "1.0.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1" -dependencies = [ - "unicode-xid", -] - -[[package]] -name = "proc_macro_api" +name = "proc-macro-api" version = "0.0.0" dependencies = [ "memmap2", @@ -1205,7 +1196,7 @@ dependencies = [ ] [[package]] -name = "proc_macro_srv" +name = "proc-macro-srv" version = "0.0.0" dependencies = [ "expect-test", @@ -1214,24 +1205,33 @@ dependencies = [ "memmap2", "object 0.28.3", "paths", - "proc_macro_api", - "proc_macro_test", + "proc-macro-api", + "proc-macro-test", "tt", ] [[package]] -name = "proc_macro_test" +name = "proc-macro-test" version = "0.0.0" dependencies = [ "cargo_metadata", - "proc_macro_test_impl", + "proc-macro-test-impl", "toolchain", ] [[package]] -name = "proc_macro_test_impl" +name = "proc-macro-test-impl" version = "0.0.0" +[[package]] +name = "proc-macro2" +version = "1.0.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1" +dependencies = [ + "unicode-xid", +] + [[package]] name = "profile" version = "0.0.0" @@ -1247,11 +1247,11 @@ dependencies = [ ] [[package]] -name = "project_model" +name = "project-model" version = "0.0.0" dependencies = [ "anyhow", - "base_db", + "base-db", "cargo_metadata", "cfg", "expect-test", @@ -1378,11 +1378,11 @@ dependencies = [ "expect-test", "flycheck", "hir", - "hir_def", - "hir_ty", + "hir-def", + "hir-ty", "ide", - "ide_db", - "ide_ssr", + "ide-db", + "ide-ssr", "itertools", "jod-thread", "lsp-server", @@ -1392,10 +1392,10 @@ dependencies = [ "num_cpus", "oorandom", "parking_lot 0.12.0", - "proc_macro_api", - "proc_macro_srv", + "proc-macro-api", + "proc-macro-srv", "profile", - "project_model", + "project-model", "rayon", "rustc-hash", "serde", @@ -1403,7 +1403,7 @@ dependencies = [ "sourcegen", "stdx", "syntax", - "test_utils", + "test-utils", "threadpool", "tikv-jemallocator", "toolchain", @@ -1639,13 +1639,13 @@ dependencies = [ "smol_str", "sourcegen", "stdx", - "test_utils", - "text_edit", + "test-utils", + "text-edit", "ungrammar", ] [[package]] -name = "test_utils" +name = "test-utils" version = "0.0.0" dependencies = [ "dissimilar", @@ -1656,19 +1656,19 @@ dependencies = [ ] [[package]] -name = "text-size" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "288cb548dbe72b652243ea797201f3d481a0609a967980fcc5b2315ea811560a" - -[[package]] -name = "text_edit" +name = "text-edit" version = "0.0.0" dependencies = [ "itertools", "text-size", ] +[[package]] +name = "text-size" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "288cb548dbe72b652243ea797201f3d481a0609a967980fcc5b2315ea811560a" + [[package]] name = "thread_local" version = "1.1.4" diff --git a/Cargo.toml b/Cargo.toml index 3f83041bec0..6b68ca82389 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [workspace] members = ["xtask/", "lib/*", "crates/*"] -exclude = ["crates/proc_macro_test/imp"] +exclude = ["crates/proc-macro-test/imp"] [profile.dev] # Disabling debug info speeds up builds a bunch, diff --git a/crates/base_db/Cargo.toml b/crates/base-db/Cargo.toml similarity index 86% rename from crates/base_db/Cargo.toml rename to crates/base-db/Cargo.toml index 7ef82f6a342..f02a51ab6c4 100644 --- a/crates/base_db/Cargo.toml +++ b/crates/base-db/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "base_db" +name = "base-db" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" @@ -18,5 +18,5 @@ stdx = { path = "../stdx", version = "0.0.0" } cfg = { path = "../cfg", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } tt = { path = "../tt", version = "0.0.0" } -test_utils = { path = "../test_utils", version = "0.0.0" } +test-utils = { path = "../test-utils", version = "0.0.0" } vfs = { path = "../vfs", version = "0.0.0" } diff --git a/crates/base_db/src/change.rs b/crates/base-db/src/change.rs similarity index 100% rename from crates/base_db/src/change.rs rename to crates/base-db/src/change.rs diff --git a/crates/base_db/src/fixture.rs b/crates/base-db/src/fixture.rs similarity index 100% rename from crates/base_db/src/fixture.rs rename to crates/base-db/src/fixture.rs diff --git a/crates/base_db/src/input.rs b/crates/base-db/src/input.rs similarity index 100% rename from crates/base_db/src/input.rs rename to crates/base-db/src/input.rs diff --git a/crates/base_db/src/lib.rs b/crates/base-db/src/lib.rs similarity index 100% rename from crates/base_db/src/lib.rs rename to crates/base-db/src/lib.rs diff --git a/crates/hir_def/Cargo.toml b/crates/hir-def/Cargo.toml similarity index 85% rename from crates/hir_def/Cargo.toml rename to crates/hir-def/Cargo.toml index 5863092839b..d369c3ed282 100644 --- a/crates/hir_def/Cargo.toml +++ b/crates/hir-def/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "hir_def" +name = "hir-def" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" @@ -29,15 +29,15 @@ arrayvec = "0.7.2" la-arena = { version = "0.3.0", path = "../../lib/arena" } stdx = { path = "../stdx", version = "0.0.0" } -base_db = { path = "../base_db", version = "0.0.0" } +base-db = { path = "../base-db", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } -hir_expand = { path = "../hir_expand", version = "0.0.0" } +hir-expand = { path = "../hir-expand", version = "0.0.0" } mbe = { path = "../mbe", version = "0.0.0" } cfg = { path = "../cfg", version = "0.0.0" } tt = { path = "../tt", version = "0.0.0" } limit = { path = "../limit", version = "0.0.0" } [dev-dependencies] -test_utils = { path = "../test_utils" } +test-utils = { path = "../test-utils" } expect-test = "1.2.2" diff --git a/crates/hir_def/src/adt.rs b/crates/hir-def/src/adt.rs similarity index 100% rename from crates/hir_def/src/adt.rs rename to crates/hir-def/src/adt.rs diff --git a/crates/hir_def/src/attr.rs b/crates/hir-def/src/attr.rs similarity index 100% rename from crates/hir_def/src/attr.rs rename to crates/hir-def/src/attr.rs diff --git a/crates/hir_def/src/body.rs b/crates/hir-def/src/body.rs similarity index 100% rename from crates/hir_def/src/body.rs rename to crates/hir-def/src/body.rs diff --git a/crates/hir_def/src/body/lower.rs b/crates/hir-def/src/body/lower.rs similarity index 100% rename from crates/hir_def/src/body/lower.rs rename to crates/hir-def/src/body/lower.rs diff --git a/crates/hir_def/src/body/scope.rs b/crates/hir-def/src/body/scope.rs similarity index 100% rename from crates/hir_def/src/body/scope.rs rename to crates/hir-def/src/body/scope.rs diff --git a/crates/hir_def/src/body/tests.rs b/crates/hir-def/src/body/tests.rs similarity index 100% rename from crates/hir_def/src/body/tests.rs rename to crates/hir-def/src/body/tests.rs diff --git a/crates/hir_def/src/body/tests/block.rs b/crates/hir-def/src/body/tests/block.rs similarity index 100% rename from crates/hir_def/src/body/tests/block.rs rename to crates/hir-def/src/body/tests/block.rs diff --git a/crates/hir_def/src/builtin_attr.rs b/crates/hir-def/src/builtin_attr.rs similarity index 100% rename from crates/hir_def/src/builtin_attr.rs rename to crates/hir-def/src/builtin_attr.rs diff --git a/crates/hir_def/src/builtin_type.rs b/crates/hir-def/src/builtin_type.rs similarity index 100% rename from crates/hir_def/src/builtin_type.rs rename to crates/hir-def/src/builtin_type.rs diff --git a/crates/hir_def/src/child_by_source.rs b/crates/hir-def/src/child_by_source.rs similarity index 100% rename from crates/hir_def/src/child_by_source.rs rename to crates/hir-def/src/child_by_source.rs diff --git a/crates/hir_def/src/data.rs b/crates/hir-def/src/data.rs similarity index 100% rename from crates/hir_def/src/data.rs rename to crates/hir-def/src/data.rs diff --git a/crates/hir_def/src/db.rs b/crates/hir-def/src/db.rs similarity index 100% rename from crates/hir_def/src/db.rs rename to crates/hir-def/src/db.rs diff --git a/crates/hir_def/src/dyn_map.rs b/crates/hir-def/src/dyn_map.rs similarity index 100% rename from crates/hir_def/src/dyn_map.rs rename to crates/hir-def/src/dyn_map.rs diff --git a/crates/hir_def/src/expr.rs b/crates/hir-def/src/expr.rs similarity index 100% rename from crates/hir_def/src/expr.rs rename to crates/hir-def/src/expr.rs diff --git a/crates/hir_def/src/find_path.rs b/crates/hir-def/src/find_path.rs similarity index 100% rename from crates/hir_def/src/find_path.rs rename to crates/hir-def/src/find_path.rs diff --git a/crates/hir_def/src/generics.rs b/crates/hir-def/src/generics.rs similarity index 100% rename from crates/hir_def/src/generics.rs rename to crates/hir-def/src/generics.rs diff --git a/crates/hir_def/src/import_map.rs b/crates/hir-def/src/import_map.rs similarity index 100% rename from crates/hir_def/src/import_map.rs rename to crates/hir-def/src/import_map.rs diff --git a/crates/hir_def/src/intern.rs b/crates/hir-def/src/intern.rs similarity index 100% rename from crates/hir_def/src/intern.rs rename to crates/hir-def/src/intern.rs diff --git a/crates/hir_def/src/item_scope.rs b/crates/hir-def/src/item_scope.rs similarity index 100% rename from crates/hir_def/src/item_scope.rs rename to crates/hir-def/src/item_scope.rs diff --git a/crates/hir_def/src/item_tree.rs b/crates/hir-def/src/item_tree.rs similarity index 100% rename from crates/hir_def/src/item_tree.rs rename to crates/hir-def/src/item_tree.rs diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir-def/src/item_tree/lower.rs similarity index 100% rename from crates/hir_def/src/item_tree/lower.rs rename to crates/hir-def/src/item_tree/lower.rs diff --git a/crates/hir_def/src/item_tree/pretty.rs b/crates/hir-def/src/item_tree/pretty.rs similarity index 100% rename from crates/hir_def/src/item_tree/pretty.rs rename to crates/hir-def/src/item_tree/pretty.rs diff --git a/crates/hir_def/src/item_tree/tests.rs b/crates/hir-def/src/item_tree/tests.rs similarity index 100% rename from crates/hir_def/src/item_tree/tests.rs rename to crates/hir-def/src/item_tree/tests.rs diff --git a/crates/hir_def/src/keys.rs b/crates/hir-def/src/keys.rs similarity index 100% rename from crates/hir_def/src/keys.rs rename to crates/hir-def/src/keys.rs diff --git a/crates/hir_def/src/lang_item.rs b/crates/hir-def/src/lang_item.rs similarity index 100% rename from crates/hir_def/src/lang_item.rs rename to crates/hir-def/src/lang_item.rs diff --git a/crates/hir_def/src/lib.rs b/crates/hir-def/src/lib.rs similarity index 100% rename from crates/hir_def/src/lib.rs rename to crates/hir-def/src/lib.rs diff --git a/crates/hir_def/src/macro_expansion_tests.rs b/crates/hir-def/src/macro_expansion_tests.rs similarity index 100% rename from crates/hir_def/src/macro_expansion_tests.rs rename to crates/hir-def/src/macro_expansion_tests.rs diff --git a/crates/hir_def/src/macro_expansion_tests/builtin_derive_macro.rs b/crates/hir-def/src/macro_expansion_tests/builtin_derive_macro.rs similarity index 100% rename from crates/hir_def/src/macro_expansion_tests/builtin_derive_macro.rs rename to crates/hir-def/src/macro_expansion_tests/builtin_derive_macro.rs diff --git a/crates/hir_def/src/macro_expansion_tests/builtin_fn_macro.rs b/crates/hir-def/src/macro_expansion_tests/builtin_fn_macro.rs similarity index 100% rename from crates/hir_def/src/macro_expansion_tests/builtin_fn_macro.rs rename to crates/hir-def/src/macro_expansion_tests/builtin_fn_macro.rs diff --git a/crates/hir_def/src/macro_expansion_tests/mbe.rs b/crates/hir-def/src/macro_expansion_tests/mbe.rs similarity index 100% rename from crates/hir_def/src/macro_expansion_tests/mbe.rs rename to crates/hir-def/src/macro_expansion_tests/mbe.rs diff --git a/crates/hir_def/src/macro_expansion_tests/mbe/matching.rs b/crates/hir-def/src/macro_expansion_tests/mbe/matching.rs similarity index 100% rename from crates/hir_def/src/macro_expansion_tests/mbe/matching.rs rename to crates/hir-def/src/macro_expansion_tests/mbe/matching.rs diff --git a/crates/hir_def/src/macro_expansion_tests/mbe/meta_syntax.rs b/crates/hir-def/src/macro_expansion_tests/mbe/meta_syntax.rs similarity index 100% rename from crates/hir_def/src/macro_expansion_tests/mbe/meta_syntax.rs rename to crates/hir-def/src/macro_expansion_tests/mbe/meta_syntax.rs diff --git a/crates/hir_def/src/macro_expansion_tests/mbe/regression.rs b/crates/hir-def/src/macro_expansion_tests/mbe/regression.rs similarity index 100% rename from crates/hir_def/src/macro_expansion_tests/mbe/regression.rs rename to crates/hir-def/src/macro_expansion_tests/mbe/regression.rs diff --git a/crates/hir_def/src/macro_expansion_tests/mbe/tt_conversion.rs b/crates/hir-def/src/macro_expansion_tests/mbe/tt_conversion.rs similarity index 100% rename from crates/hir_def/src/macro_expansion_tests/mbe/tt_conversion.rs rename to crates/hir-def/src/macro_expansion_tests/mbe/tt_conversion.rs diff --git a/crates/hir_def/src/macro_expansion_tests/proc_macros.rs b/crates/hir-def/src/macro_expansion_tests/proc_macros.rs similarity index 100% rename from crates/hir_def/src/macro_expansion_tests/proc_macros.rs rename to crates/hir-def/src/macro_expansion_tests/proc_macros.rs diff --git a/crates/hir_def/src/nameres.rs b/crates/hir-def/src/nameres.rs similarity index 100% rename from crates/hir_def/src/nameres.rs rename to crates/hir-def/src/nameres.rs diff --git a/crates/hir_def/src/nameres/attr_resolution.rs b/crates/hir-def/src/nameres/attr_resolution.rs similarity index 100% rename from crates/hir_def/src/nameres/attr_resolution.rs rename to crates/hir-def/src/nameres/attr_resolution.rs diff --git a/crates/hir_def/src/nameres/collector.rs b/crates/hir-def/src/nameres/collector.rs similarity index 100% rename from crates/hir_def/src/nameres/collector.rs rename to crates/hir-def/src/nameres/collector.rs diff --git a/crates/hir_def/src/nameres/diagnostics.rs b/crates/hir-def/src/nameres/diagnostics.rs similarity index 100% rename from crates/hir_def/src/nameres/diagnostics.rs rename to crates/hir-def/src/nameres/diagnostics.rs diff --git a/crates/hir_def/src/nameres/mod_resolution.rs b/crates/hir-def/src/nameres/mod_resolution.rs similarity index 100% rename from crates/hir_def/src/nameres/mod_resolution.rs rename to crates/hir-def/src/nameres/mod_resolution.rs diff --git a/crates/hir_def/src/nameres/path_resolution.rs b/crates/hir-def/src/nameres/path_resolution.rs similarity index 100% rename from crates/hir_def/src/nameres/path_resolution.rs rename to crates/hir-def/src/nameres/path_resolution.rs diff --git a/crates/hir_def/src/nameres/proc_macro.rs b/crates/hir-def/src/nameres/proc_macro.rs similarity index 100% rename from crates/hir_def/src/nameres/proc_macro.rs rename to crates/hir-def/src/nameres/proc_macro.rs diff --git a/crates/hir_def/src/nameres/tests.rs b/crates/hir-def/src/nameres/tests.rs similarity index 100% rename from crates/hir_def/src/nameres/tests.rs rename to crates/hir-def/src/nameres/tests.rs diff --git a/crates/hir_def/src/nameres/tests/globs.rs b/crates/hir-def/src/nameres/tests/globs.rs similarity index 100% rename from crates/hir_def/src/nameres/tests/globs.rs rename to crates/hir-def/src/nameres/tests/globs.rs diff --git a/crates/hir_def/src/nameres/tests/incremental.rs b/crates/hir-def/src/nameres/tests/incremental.rs similarity index 100% rename from crates/hir_def/src/nameres/tests/incremental.rs rename to crates/hir-def/src/nameres/tests/incremental.rs diff --git a/crates/hir_def/src/nameres/tests/macros.rs b/crates/hir-def/src/nameres/tests/macros.rs similarity index 100% rename from crates/hir_def/src/nameres/tests/macros.rs rename to crates/hir-def/src/nameres/tests/macros.rs diff --git a/crates/hir_def/src/nameres/tests/mod_resolution.rs b/crates/hir-def/src/nameres/tests/mod_resolution.rs similarity index 100% rename from crates/hir_def/src/nameres/tests/mod_resolution.rs rename to crates/hir-def/src/nameres/tests/mod_resolution.rs diff --git a/crates/hir_def/src/nameres/tests/primitives.rs b/crates/hir-def/src/nameres/tests/primitives.rs similarity index 100% rename from crates/hir_def/src/nameres/tests/primitives.rs rename to crates/hir-def/src/nameres/tests/primitives.rs diff --git a/crates/hir_def/src/path.rs b/crates/hir-def/src/path.rs similarity index 100% rename from crates/hir_def/src/path.rs rename to crates/hir-def/src/path.rs diff --git a/crates/hir_def/src/path/lower.rs b/crates/hir-def/src/path/lower.rs similarity index 100% rename from crates/hir_def/src/path/lower.rs rename to crates/hir-def/src/path/lower.rs diff --git a/crates/hir_def/src/per_ns.rs b/crates/hir-def/src/per_ns.rs similarity index 100% rename from crates/hir_def/src/per_ns.rs rename to crates/hir-def/src/per_ns.rs diff --git a/crates/hir_def/src/resolver.rs b/crates/hir-def/src/resolver.rs similarity index 100% rename from crates/hir_def/src/resolver.rs rename to crates/hir-def/src/resolver.rs diff --git a/crates/hir_def/src/src.rs b/crates/hir-def/src/src.rs similarity index 100% rename from crates/hir_def/src/src.rs rename to crates/hir-def/src/src.rs diff --git a/crates/hir_def/src/test_db.rs b/crates/hir-def/src/test_db.rs similarity index 100% rename from crates/hir_def/src/test_db.rs rename to crates/hir-def/src/test_db.rs diff --git a/crates/hir_def/src/trace.rs b/crates/hir-def/src/trace.rs similarity index 100% rename from crates/hir_def/src/trace.rs rename to crates/hir-def/src/trace.rs diff --git a/crates/hir_def/src/type_ref.rs b/crates/hir-def/src/type_ref.rs similarity index 100% rename from crates/hir_def/src/type_ref.rs rename to crates/hir-def/src/type_ref.rs diff --git a/crates/hir_def/src/visibility.rs b/crates/hir-def/src/visibility.rs similarity index 100% rename from crates/hir_def/src/visibility.rs rename to crates/hir-def/src/visibility.rs diff --git a/crates/hir_expand/Cargo.toml b/crates/hir-expand/Cargo.toml similarity index 91% rename from crates/hir_expand/Cargo.toml rename to crates/hir-expand/Cargo.toml index 9d8772d1293..f4770a6f9fe 100644 --- a/crates/hir_expand/Cargo.toml +++ b/crates/hir-expand/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "hir_expand" +name = "hir-expand" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" @@ -20,7 +20,7 @@ hashbrown = { version = "0.12.0", features = [ "inline-more", ], default-features = false } -base_db = { path = "../base_db", version = "0.0.0" } +base-db = { path = "../base-db", version = "0.0.0" } cfg = { path = "../cfg", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } diff --git a/crates/hir_expand/src/ast_id_map.rs b/crates/hir-expand/src/ast_id_map.rs similarity index 100% rename from crates/hir_expand/src/ast_id_map.rs rename to crates/hir-expand/src/ast_id_map.rs diff --git a/crates/hir_expand/src/builtin_attr_macro.rs b/crates/hir-expand/src/builtin_attr_macro.rs similarity index 100% rename from crates/hir_expand/src/builtin_attr_macro.rs rename to crates/hir-expand/src/builtin_attr_macro.rs diff --git a/crates/hir_expand/src/builtin_derive_macro.rs b/crates/hir-expand/src/builtin_derive_macro.rs similarity index 100% rename from crates/hir_expand/src/builtin_derive_macro.rs rename to crates/hir-expand/src/builtin_derive_macro.rs diff --git a/crates/hir_expand/src/builtin_fn_macro.rs b/crates/hir-expand/src/builtin_fn_macro.rs similarity index 100% rename from crates/hir_expand/src/builtin_fn_macro.rs rename to crates/hir-expand/src/builtin_fn_macro.rs diff --git a/crates/hir_expand/src/db.rs b/crates/hir-expand/src/db.rs similarity index 100% rename from crates/hir_expand/src/db.rs rename to crates/hir-expand/src/db.rs diff --git a/crates/hir_expand/src/eager.rs b/crates/hir-expand/src/eager.rs similarity index 100% rename from crates/hir_expand/src/eager.rs rename to crates/hir-expand/src/eager.rs diff --git a/crates/hir_expand/src/fixup.rs b/crates/hir-expand/src/fixup.rs similarity index 100% rename from crates/hir_expand/src/fixup.rs rename to crates/hir-expand/src/fixup.rs diff --git a/crates/hir_expand/src/hygiene.rs b/crates/hir-expand/src/hygiene.rs similarity index 100% rename from crates/hir_expand/src/hygiene.rs rename to crates/hir-expand/src/hygiene.rs diff --git a/crates/hir_expand/src/lib.rs b/crates/hir-expand/src/lib.rs similarity index 100% rename from crates/hir_expand/src/lib.rs rename to crates/hir-expand/src/lib.rs diff --git a/crates/hir_expand/src/mod_path.rs b/crates/hir-expand/src/mod_path.rs similarity index 100% rename from crates/hir_expand/src/mod_path.rs rename to crates/hir-expand/src/mod_path.rs diff --git a/crates/hir_expand/src/name.rs b/crates/hir-expand/src/name.rs similarity index 100% rename from crates/hir_expand/src/name.rs rename to crates/hir-expand/src/name.rs diff --git a/crates/hir_expand/src/proc_macro.rs b/crates/hir-expand/src/proc_macro.rs similarity index 100% rename from crates/hir_expand/src/proc_macro.rs rename to crates/hir-expand/src/proc_macro.rs diff --git a/crates/hir_expand/src/quote.rs b/crates/hir-expand/src/quote.rs similarity index 100% rename from crates/hir_expand/src/quote.rs rename to crates/hir-expand/src/quote.rs diff --git a/crates/hir_ty/Cargo.toml b/crates/hir-ty/Cargo.toml similarity index 81% rename from crates/hir_ty/Cargo.toml rename to crates/hir-ty/Cargo.toml index 1fe57882539..06cdb1e4e03 100644 --- a/crates/hir_ty/Cargo.toml +++ b/crates/hir-ty/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "hir_ty" +name = "hir-ty" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" @@ -26,15 +26,15 @@ once_cell = "1.10.0" typed-arena = "2.0.1" stdx = { path = "../stdx", version = "0.0.0" } -hir_def = { path = "../hir_def", version = "0.0.0" } -hir_expand = { path = "../hir_expand", version = "0.0.0" } -base_db = { path = "../base_db", version = "0.0.0" } +hir-def = { path = "../hir-def", version = "0.0.0" } +hir-expand = { path = "../hir-expand", version = "0.0.0" } +base-db = { path = "../base-db", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } limit = { path = "../limit", version = "0.0.0" } [dev-dependencies] -test_utils = { path = "../test_utils" } +test-utils = { path = "../test-utils" } expect-test = "1.2.2" tracing = "0.1.32" tracing-subscriber = { version = "0.3.9", default-features = false, features = [ diff --git a/crates/hir_ty/src/autoderef.rs b/crates/hir-ty/src/autoderef.rs similarity index 100% rename from crates/hir_ty/src/autoderef.rs rename to crates/hir-ty/src/autoderef.rs diff --git a/crates/hir_ty/src/builder.rs b/crates/hir-ty/src/builder.rs similarity index 100% rename from crates/hir_ty/src/builder.rs rename to crates/hir-ty/src/builder.rs diff --git a/crates/hir_ty/src/chalk_db.rs b/crates/hir-ty/src/chalk_db.rs similarity index 100% rename from crates/hir_ty/src/chalk_db.rs rename to crates/hir-ty/src/chalk_db.rs diff --git a/crates/hir_ty/src/chalk_ext.rs b/crates/hir-ty/src/chalk_ext.rs similarity index 100% rename from crates/hir_ty/src/chalk_ext.rs rename to crates/hir-ty/src/chalk_ext.rs diff --git a/crates/hir_ty/src/consteval.rs b/crates/hir-ty/src/consteval.rs similarity index 100% rename from crates/hir_ty/src/consteval.rs rename to crates/hir-ty/src/consteval.rs diff --git a/crates/hir_ty/src/consteval/tests.rs b/crates/hir-ty/src/consteval/tests.rs similarity index 100% rename from crates/hir_ty/src/consteval/tests.rs rename to crates/hir-ty/src/consteval/tests.rs diff --git a/crates/hir_ty/src/db.rs b/crates/hir-ty/src/db.rs similarity index 100% rename from crates/hir_ty/src/db.rs rename to crates/hir-ty/src/db.rs diff --git a/crates/hir_ty/src/diagnostics.rs b/crates/hir-ty/src/diagnostics.rs similarity index 100% rename from crates/hir_ty/src/diagnostics.rs rename to crates/hir-ty/src/diagnostics.rs diff --git a/crates/hir_ty/src/diagnostics/decl_check.rs b/crates/hir-ty/src/diagnostics/decl_check.rs similarity index 100% rename from crates/hir_ty/src/diagnostics/decl_check.rs rename to crates/hir-ty/src/diagnostics/decl_check.rs diff --git a/crates/hir_ty/src/diagnostics/decl_check/case_conv.rs b/crates/hir-ty/src/diagnostics/decl_check/case_conv.rs similarity index 100% rename from crates/hir_ty/src/diagnostics/decl_check/case_conv.rs rename to crates/hir-ty/src/diagnostics/decl_check/case_conv.rs diff --git a/crates/hir_ty/src/diagnostics/expr.rs b/crates/hir-ty/src/diagnostics/expr.rs similarity index 100% rename from crates/hir_ty/src/diagnostics/expr.rs rename to crates/hir-ty/src/diagnostics/expr.rs diff --git a/crates/hir_ty/src/diagnostics/match_check.rs b/crates/hir-ty/src/diagnostics/match_check.rs similarity index 100% rename from crates/hir_ty/src/diagnostics/match_check.rs rename to crates/hir-ty/src/diagnostics/match_check.rs diff --git a/crates/hir_ty/src/diagnostics/match_check/deconstruct_pat.rs b/crates/hir-ty/src/diagnostics/match_check/deconstruct_pat.rs similarity index 100% rename from crates/hir_ty/src/diagnostics/match_check/deconstruct_pat.rs rename to crates/hir-ty/src/diagnostics/match_check/deconstruct_pat.rs diff --git a/crates/hir_ty/src/diagnostics/match_check/pat_util.rs b/crates/hir-ty/src/diagnostics/match_check/pat_util.rs similarity index 100% rename from crates/hir_ty/src/diagnostics/match_check/pat_util.rs rename to crates/hir-ty/src/diagnostics/match_check/pat_util.rs diff --git a/crates/hir_ty/src/diagnostics/match_check/usefulness.rs b/crates/hir-ty/src/diagnostics/match_check/usefulness.rs similarity index 100% rename from crates/hir_ty/src/diagnostics/match_check/usefulness.rs rename to crates/hir-ty/src/diagnostics/match_check/usefulness.rs diff --git a/crates/hir_ty/src/diagnostics/unsafe_check.rs b/crates/hir-ty/src/diagnostics/unsafe_check.rs similarity index 100% rename from crates/hir_ty/src/diagnostics/unsafe_check.rs rename to crates/hir-ty/src/diagnostics/unsafe_check.rs diff --git a/crates/hir_ty/src/display.rs b/crates/hir-ty/src/display.rs similarity index 100% rename from crates/hir_ty/src/display.rs rename to crates/hir-ty/src/display.rs diff --git a/crates/hir_ty/src/infer.rs b/crates/hir-ty/src/infer.rs similarity index 100% rename from crates/hir_ty/src/infer.rs rename to crates/hir-ty/src/infer.rs diff --git a/crates/hir_ty/src/infer/closure.rs b/crates/hir-ty/src/infer/closure.rs similarity index 100% rename from crates/hir_ty/src/infer/closure.rs rename to crates/hir-ty/src/infer/closure.rs diff --git a/crates/hir_ty/src/infer/coerce.rs b/crates/hir-ty/src/infer/coerce.rs similarity index 100% rename from crates/hir_ty/src/infer/coerce.rs rename to crates/hir-ty/src/infer/coerce.rs diff --git a/crates/hir_ty/src/infer/expr.rs b/crates/hir-ty/src/infer/expr.rs similarity index 100% rename from crates/hir_ty/src/infer/expr.rs rename to crates/hir-ty/src/infer/expr.rs diff --git a/crates/hir_ty/src/infer/pat.rs b/crates/hir-ty/src/infer/pat.rs similarity index 100% rename from crates/hir_ty/src/infer/pat.rs rename to crates/hir-ty/src/infer/pat.rs diff --git a/crates/hir_ty/src/infer/path.rs b/crates/hir-ty/src/infer/path.rs similarity index 100% rename from crates/hir_ty/src/infer/path.rs rename to crates/hir-ty/src/infer/path.rs diff --git a/crates/hir_ty/src/infer/unify.rs b/crates/hir-ty/src/infer/unify.rs similarity index 100% rename from crates/hir_ty/src/infer/unify.rs rename to crates/hir-ty/src/infer/unify.rs diff --git a/crates/hir_ty/src/interner.rs b/crates/hir-ty/src/interner.rs similarity index 100% rename from crates/hir_ty/src/interner.rs rename to crates/hir-ty/src/interner.rs diff --git a/crates/hir_ty/src/lib.rs b/crates/hir-ty/src/lib.rs similarity index 100% rename from crates/hir_ty/src/lib.rs rename to crates/hir-ty/src/lib.rs diff --git a/crates/hir_ty/src/lower.rs b/crates/hir-ty/src/lower.rs similarity index 100% rename from crates/hir_ty/src/lower.rs rename to crates/hir-ty/src/lower.rs diff --git a/crates/hir_ty/src/mapping.rs b/crates/hir-ty/src/mapping.rs similarity index 100% rename from crates/hir_ty/src/mapping.rs rename to crates/hir-ty/src/mapping.rs diff --git a/crates/hir_ty/src/method_resolution.rs b/crates/hir-ty/src/method_resolution.rs similarity index 100% rename from crates/hir_ty/src/method_resolution.rs rename to crates/hir-ty/src/method_resolution.rs diff --git a/crates/hir_ty/src/primitive.rs b/crates/hir-ty/src/primitive.rs similarity index 100% rename from crates/hir_ty/src/primitive.rs rename to crates/hir-ty/src/primitive.rs diff --git a/crates/hir_ty/src/test_db.rs b/crates/hir-ty/src/test_db.rs similarity index 100% rename from crates/hir_ty/src/test_db.rs rename to crates/hir-ty/src/test_db.rs diff --git a/crates/hir_ty/src/tests.rs b/crates/hir-ty/src/tests.rs similarity index 100% rename from crates/hir_ty/src/tests.rs rename to crates/hir-ty/src/tests.rs diff --git a/crates/hir_ty/src/tests/coercion.rs b/crates/hir-ty/src/tests/coercion.rs similarity index 100% rename from crates/hir_ty/src/tests/coercion.rs rename to crates/hir-ty/src/tests/coercion.rs diff --git a/crates/hir_ty/src/tests/diagnostics.rs b/crates/hir-ty/src/tests/diagnostics.rs similarity index 100% rename from crates/hir_ty/src/tests/diagnostics.rs rename to crates/hir-ty/src/tests/diagnostics.rs diff --git a/crates/hir_ty/src/tests/display_source_code.rs b/crates/hir-ty/src/tests/display_source_code.rs similarity index 100% rename from crates/hir_ty/src/tests/display_source_code.rs rename to crates/hir-ty/src/tests/display_source_code.rs diff --git a/crates/hir_ty/src/tests/incremental.rs b/crates/hir-ty/src/tests/incremental.rs similarity index 100% rename from crates/hir_ty/src/tests/incremental.rs rename to crates/hir-ty/src/tests/incremental.rs diff --git a/crates/hir_ty/src/tests/macros.rs b/crates/hir-ty/src/tests/macros.rs similarity index 100% rename from crates/hir_ty/src/tests/macros.rs rename to crates/hir-ty/src/tests/macros.rs diff --git a/crates/hir_ty/src/tests/method_resolution.rs b/crates/hir-ty/src/tests/method_resolution.rs similarity index 100% rename from crates/hir_ty/src/tests/method_resolution.rs rename to crates/hir-ty/src/tests/method_resolution.rs diff --git a/crates/hir_ty/src/tests/never_type.rs b/crates/hir-ty/src/tests/never_type.rs similarity index 100% rename from crates/hir_ty/src/tests/never_type.rs rename to crates/hir-ty/src/tests/never_type.rs diff --git a/crates/hir_ty/src/tests/patterns.rs b/crates/hir-ty/src/tests/patterns.rs similarity index 100% rename from crates/hir_ty/src/tests/patterns.rs rename to crates/hir-ty/src/tests/patterns.rs diff --git a/crates/hir_ty/src/tests/regression.rs b/crates/hir-ty/src/tests/regression.rs similarity index 100% rename from crates/hir_ty/src/tests/regression.rs rename to crates/hir-ty/src/tests/regression.rs diff --git a/crates/hir_ty/src/tests/simple.rs b/crates/hir-ty/src/tests/simple.rs similarity index 100% rename from crates/hir_ty/src/tests/simple.rs rename to crates/hir-ty/src/tests/simple.rs diff --git a/crates/hir_ty/src/tests/traits.rs b/crates/hir-ty/src/tests/traits.rs similarity index 100% rename from crates/hir_ty/src/tests/traits.rs rename to crates/hir-ty/src/tests/traits.rs diff --git a/crates/hir_ty/src/tls.rs b/crates/hir-ty/src/tls.rs similarity index 100% rename from crates/hir_ty/src/tls.rs rename to crates/hir-ty/src/tls.rs diff --git a/crates/hir_ty/src/traits.rs b/crates/hir-ty/src/traits.rs similarity index 100% rename from crates/hir_ty/src/traits.rs rename to crates/hir-ty/src/traits.rs diff --git a/crates/hir_ty/src/utils.rs b/crates/hir-ty/src/utils.rs similarity index 100% rename from crates/hir_ty/src/utils.rs rename to crates/hir-ty/src/utils.rs diff --git a/crates/hir_ty/src/walk.rs b/crates/hir-ty/src/walk.rs similarity index 100% rename from crates/hir_ty/src/walk.rs rename to crates/hir-ty/src/walk.rs diff --git a/crates/hir/Cargo.toml b/crates/hir/Cargo.toml index 2b9a52d36fe..1cffd823f26 100644 --- a/crates/hir/Cargo.toml +++ b/crates/hir/Cargo.toml @@ -19,10 +19,10 @@ once_cell = "1.10.0" stdx = { path = "../stdx", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } -base_db = { path = "../base_db", version = "0.0.0" } +base-db = { path = "../base-db", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } -hir_expand = { path = "../hir_expand", version = "0.0.0" } -hir_def = { path = "../hir_def", version = "0.0.0" } -hir_ty = { path = "../hir_ty", version = "0.0.0" } +hir-expand = { path = "../hir-expand", version = "0.0.0" } +hir-def = { path = "../hir-def", version = "0.0.0" } +hir-ty = { path = "../hir-ty", version = "0.0.0" } tt = { path = "../tt", version = "0.0.0" } cfg = { path = "../cfg", version = "0.0.0" } diff --git a/crates/ide_assists/Cargo.toml b/crates/ide-assists/Cargo.toml similarity index 74% rename from crates/ide_assists/Cargo.toml rename to crates/ide-assists/Cargo.toml index edd0d262909..d86de2cca4b 100644 --- a/crates/ide_assists/Cargo.toml +++ b/crates/ide-assists/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "ide_assists" +name = "ide-assists" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" @@ -17,12 +17,12 @@ either = "1.6.1" stdx = { path = "../stdx", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } -text_edit = { path = "../text_edit", version = "0.0.0" } +text-edit = { path = "../text-edit", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } -ide_db = { path = "../ide_db", version = "0.0.0" } +ide-db = { path = "../ide-db", version = "0.0.0" } hir = { path = "../hir", version = "0.0.0" } [dev-dependencies] -test_utils = { path = "../test_utils" } +test-utils = { path = "../test-utils" } sourcegen = { path = "../sourcegen" } expect-test = "1.2.2" diff --git a/crates/ide_assists/src/assist_config.rs b/crates/ide-assists/src/assist_config.rs similarity index 100% rename from crates/ide_assists/src/assist_config.rs rename to crates/ide-assists/src/assist_config.rs diff --git a/crates/ide_assists/src/assist_context.rs b/crates/ide-assists/src/assist_context.rs similarity index 100% rename from crates/ide_assists/src/assist_context.rs rename to crates/ide-assists/src/assist_context.rs diff --git a/crates/ide_assists/src/handlers/add_explicit_type.rs b/crates/ide-assists/src/handlers/add_explicit_type.rs similarity index 100% rename from crates/ide_assists/src/handlers/add_explicit_type.rs rename to crates/ide-assists/src/handlers/add_explicit_type.rs diff --git a/crates/ide_assists/src/handlers/add_lifetime_to_type.rs b/crates/ide-assists/src/handlers/add_lifetime_to_type.rs similarity index 100% rename from crates/ide_assists/src/handlers/add_lifetime_to_type.rs rename to crates/ide-assists/src/handlers/add_lifetime_to_type.rs diff --git a/crates/ide_assists/src/handlers/add_missing_impl_members.rs b/crates/ide-assists/src/handlers/add_missing_impl_members.rs similarity index 100% rename from crates/ide_assists/src/handlers/add_missing_impl_members.rs rename to crates/ide-assists/src/handlers/add_missing_impl_members.rs diff --git a/crates/ide_assists/src/handlers/add_missing_match_arms.rs b/crates/ide-assists/src/handlers/add_missing_match_arms.rs similarity index 100% rename from crates/ide_assists/src/handlers/add_missing_match_arms.rs rename to crates/ide-assists/src/handlers/add_missing_match_arms.rs diff --git a/crates/ide_assists/src/handlers/add_return_type.rs b/crates/ide-assists/src/handlers/add_return_type.rs similarity index 100% rename from crates/ide_assists/src/handlers/add_return_type.rs rename to crates/ide-assists/src/handlers/add_return_type.rs diff --git a/crates/ide_assists/src/handlers/add_turbo_fish.rs b/crates/ide-assists/src/handlers/add_turbo_fish.rs similarity index 100% rename from crates/ide_assists/src/handlers/add_turbo_fish.rs rename to crates/ide-assists/src/handlers/add_turbo_fish.rs diff --git a/crates/ide_assists/src/handlers/apply_demorgan.rs b/crates/ide-assists/src/handlers/apply_demorgan.rs similarity index 100% rename from crates/ide_assists/src/handlers/apply_demorgan.rs rename to crates/ide-assists/src/handlers/apply_demorgan.rs diff --git a/crates/ide_assists/src/handlers/auto_import.rs b/crates/ide-assists/src/handlers/auto_import.rs similarity index 100% rename from crates/ide_assists/src/handlers/auto_import.rs rename to crates/ide-assists/src/handlers/auto_import.rs diff --git a/crates/ide_assists/src/handlers/change_visibility.rs b/crates/ide-assists/src/handlers/change_visibility.rs similarity index 100% rename from crates/ide_assists/src/handlers/change_visibility.rs rename to crates/ide-assists/src/handlers/change_visibility.rs diff --git a/crates/ide_assists/src/handlers/convert_bool_then.rs b/crates/ide-assists/src/handlers/convert_bool_then.rs similarity index 100% rename from crates/ide_assists/src/handlers/convert_bool_then.rs rename to crates/ide-assists/src/handlers/convert_bool_then.rs diff --git a/crates/ide_assists/src/handlers/convert_comment_block.rs b/crates/ide-assists/src/handlers/convert_comment_block.rs similarity index 100% rename from crates/ide_assists/src/handlers/convert_comment_block.rs rename to crates/ide-assists/src/handlers/convert_comment_block.rs diff --git a/crates/ide_assists/src/handlers/convert_integer_literal.rs b/crates/ide-assists/src/handlers/convert_integer_literal.rs similarity index 100% rename from crates/ide_assists/src/handlers/convert_integer_literal.rs rename to crates/ide-assists/src/handlers/convert_integer_literal.rs diff --git a/crates/ide_assists/src/handlers/convert_into_to_from.rs b/crates/ide-assists/src/handlers/convert_into_to_from.rs similarity index 100% rename from crates/ide_assists/src/handlers/convert_into_to_from.rs rename to crates/ide-assists/src/handlers/convert_into_to_from.rs diff --git a/crates/ide_assists/src/handlers/convert_iter_for_each_to_for.rs b/crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs similarity index 100% rename from crates/ide_assists/src/handlers/convert_iter_for_each_to_for.rs rename to crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs diff --git a/crates/ide_assists/src/handlers/convert_to_guarded_return.rs b/crates/ide-assists/src/handlers/convert_to_guarded_return.rs similarity index 100% rename from crates/ide_assists/src/handlers/convert_to_guarded_return.rs rename to crates/ide-assists/src/handlers/convert_to_guarded_return.rs diff --git a/crates/ide_assists/src/handlers/convert_tuple_struct_to_named_struct.rs b/crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs similarity index 100% rename from crates/ide_assists/src/handlers/convert_tuple_struct_to_named_struct.rs rename to crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs diff --git a/crates/ide_assists/src/handlers/convert_while_to_loop.rs b/crates/ide-assists/src/handlers/convert_while_to_loop.rs similarity index 100% rename from crates/ide_assists/src/handlers/convert_while_to_loop.rs rename to crates/ide-assists/src/handlers/convert_while_to_loop.rs diff --git a/crates/ide_assists/src/handlers/destructure_tuple_binding.rs b/crates/ide-assists/src/handlers/destructure_tuple_binding.rs similarity index 100% rename from crates/ide_assists/src/handlers/destructure_tuple_binding.rs rename to crates/ide-assists/src/handlers/destructure_tuple_binding.rs diff --git a/crates/ide_assists/src/handlers/expand_glob_import.rs b/crates/ide-assists/src/handlers/expand_glob_import.rs similarity index 100% rename from crates/ide_assists/src/handlers/expand_glob_import.rs rename to crates/ide-assists/src/handlers/expand_glob_import.rs diff --git a/crates/ide_assists/src/handlers/extract_function.rs b/crates/ide-assists/src/handlers/extract_function.rs similarity index 100% rename from crates/ide_assists/src/handlers/extract_function.rs rename to crates/ide-assists/src/handlers/extract_function.rs diff --git a/crates/ide_assists/src/handlers/extract_module.rs b/crates/ide-assists/src/handlers/extract_module.rs similarity index 100% rename from crates/ide_assists/src/handlers/extract_module.rs rename to crates/ide-assists/src/handlers/extract_module.rs diff --git a/crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs b/crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs similarity index 100% rename from crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs rename to crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs diff --git a/crates/ide_assists/src/handlers/extract_type_alias.rs b/crates/ide-assists/src/handlers/extract_type_alias.rs similarity index 100% rename from crates/ide_assists/src/handlers/extract_type_alias.rs rename to crates/ide-assists/src/handlers/extract_type_alias.rs diff --git a/crates/ide_assists/src/handlers/extract_variable.rs b/crates/ide-assists/src/handlers/extract_variable.rs similarity index 100% rename from crates/ide_assists/src/handlers/extract_variable.rs rename to crates/ide-assists/src/handlers/extract_variable.rs diff --git a/crates/ide_assists/src/handlers/fix_visibility.rs b/crates/ide-assists/src/handlers/fix_visibility.rs similarity index 100% rename from crates/ide_assists/src/handlers/fix_visibility.rs rename to crates/ide-assists/src/handlers/fix_visibility.rs diff --git a/crates/ide_assists/src/handlers/flip_binexpr.rs b/crates/ide-assists/src/handlers/flip_binexpr.rs similarity index 100% rename from crates/ide_assists/src/handlers/flip_binexpr.rs rename to crates/ide-assists/src/handlers/flip_binexpr.rs diff --git a/crates/ide_assists/src/handlers/flip_comma.rs b/crates/ide-assists/src/handlers/flip_comma.rs similarity index 100% rename from crates/ide_assists/src/handlers/flip_comma.rs rename to crates/ide-assists/src/handlers/flip_comma.rs diff --git a/crates/ide_assists/src/handlers/flip_trait_bound.rs b/crates/ide-assists/src/handlers/flip_trait_bound.rs similarity index 100% rename from crates/ide_assists/src/handlers/flip_trait_bound.rs rename to crates/ide-assists/src/handlers/flip_trait_bound.rs diff --git a/crates/ide_assists/src/handlers/generate_constant.rs b/crates/ide-assists/src/handlers/generate_constant.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_constant.rs rename to crates/ide-assists/src/handlers/generate_constant.rs diff --git a/crates/ide_assists/src/handlers/generate_default_from_enum_variant.rs b/crates/ide-assists/src/handlers/generate_default_from_enum_variant.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_default_from_enum_variant.rs rename to crates/ide-assists/src/handlers/generate_default_from_enum_variant.rs diff --git a/crates/ide_assists/src/handlers/generate_default_from_new.rs b/crates/ide-assists/src/handlers/generate_default_from_new.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_default_from_new.rs rename to crates/ide-assists/src/handlers/generate_default_from_new.rs diff --git a/crates/ide_assists/src/handlers/generate_delegate_methods.rs b/crates/ide-assists/src/handlers/generate_delegate_methods.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_delegate_methods.rs rename to crates/ide-assists/src/handlers/generate_delegate_methods.rs diff --git a/crates/ide_assists/src/handlers/generate_deref.rs b/crates/ide-assists/src/handlers/generate_deref.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_deref.rs rename to crates/ide-assists/src/handlers/generate_deref.rs diff --git a/crates/ide_assists/src/handlers/generate_derive.rs b/crates/ide-assists/src/handlers/generate_derive.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_derive.rs rename to crates/ide-assists/src/handlers/generate_derive.rs diff --git a/crates/ide_assists/src/handlers/generate_documentation_template.rs b/crates/ide-assists/src/handlers/generate_documentation_template.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_documentation_template.rs rename to crates/ide-assists/src/handlers/generate_documentation_template.rs diff --git a/crates/ide_assists/src/handlers/generate_enum_is_method.rs b/crates/ide-assists/src/handlers/generate_enum_is_method.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_enum_is_method.rs rename to crates/ide-assists/src/handlers/generate_enum_is_method.rs diff --git a/crates/ide_assists/src/handlers/generate_enum_projection_method.rs b/crates/ide-assists/src/handlers/generate_enum_projection_method.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_enum_projection_method.rs rename to crates/ide-assists/src/handlers/generate_enum_projection_method.rs diff --git a/crates/ide_assists/src/handlers/generate_from_impl_for_enum.rs b/crates/ide-assists/src/handlers/generate_from_impl_for_enum.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_from_impl_for_enum.rs rename to crates/ide-assists/src/handlers/generate_from_impl_for_enum.rs diff --git a/crates/ide_assists/src/handlers/generate_function.rs b/crates/ide-assists/src/handlers/generate_function.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_function.rs rename to crates/ide-assists/src/handlers/generate_function.rs diff --git a/crates/ide_assists/src/handlers/generate_getter.rs b/crates/ide-assists/src/handlers/generate_getter.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_getter.rs rename to crates/ide-assists/src/handlers/generate_getter.rs diff --git a/crates/ide_assists/src/handlers/generate_impl.rs b/crates/ide-assists/src/handlers/generate_impl.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_impl.rs rename to crates/ide-assists/src/handlers/generate_impl.rs diff --git a/crates/ide_assists/src/handlers/generate_is_empty_from_len.rs b/crates/ide-assists/src/handlers/generate_is_empty_from_len.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_is_empty_from_len.rs rename to crates/ide-assists/src/handlers/generate_is_empty_from_len.rs diff --git a/crates/ide_assists/src/handlers/generate_new.rs b/crates/ide-assists/src/handlers/generate_new.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_new.rs rename to crates/ide-assists/src/handlers/generate_new.rs diff --git a/crates/ide_assists/src/handlers/generate_setter.rs b/crates/ide-assists/src/handlers/generate_setter.rs similarity index 100% rename from crates/ide_assists/src/handlers/generate_setter.rs rename to crates/ide-assists/src/handlers/generate_setter.rs diff --git a/crates/ide_assists/src/handlers/inline_call.rs b/crates/ide-assists/src/handlers/inline_call.rs similarity index 100% rename from crates/ide_assists/src/handlers/inline_call.rs rename to crates/ide-assists/src/handlers/inline_call.rs diff --git a/crates/ide_assists/src/handlers/inline_local_variable.rs b/crates/ide-assists/src/handlers/inline_local_variable.rs similarity index 100% rename from crates/ide_assists/src/handlers/inline_local_variable.rs rename to crates/ide-assists/src/handlers/inline_local_variable.rs diff --git a/crates/ide_assists/src/handlers/inline_type_alias.rs b/crates/ide-assists/src/handlers/inline_type_alias.rs similarity index 100% rename from crates/ide_assists/src/handlers/inline_type_alias.rs rename to crates/ide-assists/src/handlers/inline_type_alias.rs diff --git a/crates/ide_assists/src/handlers/introduce_named_generic.rs b/crates/ide-assists/src/handlers/introduce_named_generic.rs similarity index 100% rename from crates/ide_assists/src/handlers/introduce_named_generic.rs rename to crates/ide-assists/src/handlers/introduce_named_generic.rs diff --git a/crates/ide_assists/src/handlers/introduce_named_lifetime.rs b/crates/ide-assists/src/handlers/introduce_named_lifetime.rs similarity index 100% rename from crates/ide_assists/src/handlers/introduce_named_lifetime.rs rename to crates/ide-assists/src/handlers/introduce_named_lifetime.rs diff --git a/crates/ide_assists/src/handlers/invert_if.rs b/crates/ide-assists/src/handlers/invert_if.rs similarity index 100% rename from crates/ide_assists/src/handlers/invert_if.rs rename to crates/ide-assists/src/handlers/invert_if.rs diff --git a/crates/ide_assists/src/handlers/merge_imports.rs b/crates/ide-assists/src/handlers/merge_imports.rs similarity index 100% rename from crates/ide_assists/src/handlers/merge_imports.rs rename to crates/ide-assists/src/handlers/merge_imports.rs diff --git a/crates/ide_assists/src/handlers/merge_match_arms.rs b/crates/ide-assists/src/handlers/merge_match_arms.rs similarity index 100% rename from crates/ide_assists/src/handlers/merge_match_arms.rs rename to crates/ide-assists/src/handlers/merge_match_arms.rs diff --git a/crates/ide_assists/src/handlers/move_bounds.rs b/crates/ide-assists/src/handlers/move_bounds.rs similarity index 100% rename from crates/ide_assists/src/handlers/move_bounds.rs rename to crates/ide-assists/src/handlers/move_bounds.rs diff --git a/crates/ide_assists/src/handlers/move_from_mod_rs.rs b/crates/ide-assists/src/handlers/move_from_mod_rs.rs similarity index 100% rename from crates/ide_assists/src/handlers/move_from_mod_rs.rs rename to crates/ide-assists/src/handlers/move_from_mod_rs.rs diff --git a/crates/ide_assists/src/handlers/move_guard.rs b/crates/ide-assists/src/handlers/move_guard.rs similarity index 100% rename from crates/ide_assists/src/handlers/move_guard.rs rename to crates/ide-assists/src/handlers/move_guard.rs diff --git a/crates/ide_assists/src/handlers/move_module_to_file.rs b/crates/ide-assists/src/handlers/move_module_to_file.rs similarity index 100% rename from crates/ide_assists/src/handlers/move_module_to_file.rs rename to crates/ide-assists/src/handlers/move_module_to_file.rs diff --git a/crates/ide_assists/src/handlers/move_to_mod_rs.rs b/crates/ide-assists/src/handlers/move_to_mod_rs.rs similarity index 100% rename from crates/ide_assists/src/handlers/move_to_mod_rs.rs rename to crates/ide-assists/src/handlers/move_to_mod_rs.rs diff --git a/crates/ide_assists/src/handlers/number_representation.rs b/crates/ide-assists/src/handlers/number_representation.rs similarity index 100% rename from crates/ide_assists/src/handlers/number_representation.rs rename to crates/ide-assists/src/handlers/number_representation.rs diff --git a/crates/ide_assists/src/handlers/promote_local_to_const.rs b/crates/ide-assists/src/handlers/promote_local_to_const.rs similarity index 100% rename from crates/ide_assists/src/handlers/promote_local_to_const.rs rename to crates/ide-assists/src/handlers/promote_local_to_const.rs diff --git a/crates/ide_assists/src/handlers/pull_assignment_up.rs b/crates/ide-assists/src/handlers/pull_assignment_up.rs similarity index 100% rename from crates/ide_assists/src/handlers/pull_assignment_up.rs rename to crates/ide-assists/src/handlers/pull_assignment_up.rs diff --git a/crates/ide_assists/src/handlers/qualify_method_call.rs b/crates/ide-assists/src/handlers/qualify_method_call.rs similarity index 100% rename from crates/ide_assists/src/handlers/qualify_method_call.rs rename to crates/ide-assists/src/handlers/qualify_method_call.rs diff --git a/crates/ide_assists/src/handlers/qualify_path.rs b/crates/ide-assists/src/handlers/qualify_path.rs similarity index 100% rename from crates/ide_assists/src/handlers/qualify_path.rs rename to crates/ide-assists/src/handlers/qualify_path.rs diff --git a/crates/ide_assists/src/handlers/raw_string.rs b/crates/ide-assists/src/handlers/raw_string.rs similarity index 100% rename from crates/ide_assists/src/handlers/raw_string.rs rename to crates/ide-assists/src/handlers/raw_string.rs diff --git a/crates/ide_assists/src/handlers/remove_dbg.rs b/crates/ide-assists/src/handlers/remove_dbg.rs similarity index 100% rename from crates/ide_assists/src/handlers/remove_dbg.rs rename to crates/ide-assists/src/handlers/remove_dbg.rs diff --git a/crates/ide_assists/src/handlers/remove_mut.rs b/crates/ide-assists/src/handlers/remove_mut.rs similarity index 100% rename from crates/ide_assists/src/handlers/remove_mut.rs rename to crates/ide-assists/src/handlers/remove_mut.rs diff --git a/crates/ide_assists/src/handlers/remove_unused_param.rs b/crates/ide-assists/src/handlers/remove_unused_param.rs similarity index 100% rename from crates/ide_assists/src/handlers/remove_unused_param.rs rename to crates/ide-assists/src/handlers/remove_unused_param.rs diff --git a/crates/ide_assists/src/handlers/reorder_fields.rs b/crates/ide-assists/src/handlers/reorder_fields.rs similarity index 100% rename from crates/ide_assists/src/handlers/reorder_fields.rs rename to crates/ide-assists/src/handlers/reorder_fields.rs diff --git a/crates/ide_assists/src/handlers/reorder_impl.rs b/crates/ide-assists/src/handlers/reorder_impl.rs similarity index 100% rename from crates/ide_assists/src/handlers/reorder_impl.rs rename to crates/ide-assists/src/handlers/reorder_impl.rs diff --git a/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs b/crates/ide-assists/src/handlers/replace_derive_with_manual_impl.rs similarity index 100% rename from crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs rename to crates/ide-assists/src/handlers/replace_derive_with_manual_impl.rs diff --git a/crates/ide_assists/src/handlers/replace_if_let_with_match.rs b/crates/ide-assists/src/handlers/replace_if_let_with_match.rs similarity index 100% rename from crates/ide_assists/src/handlers/replace_if_let_with_match.rs rename to crates/ide-assists/src/handlers/replace_if_let_with_match.rs diff --git a/crates/ide_assists/src/handlers/replace_let_with_if_let.rs b/crates/ide-assists/src/handlers/replace_let_with_if_let.rs similarity index 100% rename from crates/ide_assists/src/handlers/replace_let_with_if_let.rs rename to crates/ide-assists/src/handlers/replace_let_with_if_let.rs diff --git a/crates/ide_assists/src/handlers/replace_qualified_name_with_use.rs b/crates/ide-assists/src/handlers/replace_qualified_name_with_use.rs similarity index 100% rename from crates/ide_assists/src/handlers/replace_qualified_name_with_use.rs rename to crates/ide-assists/src/handlers/replace_qualified_name_with_use.rs diff --git a/crates/ide_assists/src/handlers/replace_string_with_char.rs b/crates/ide-assists/src/handlers/replace_string_with_char.rs similarity index 100% rename from crates/ide_assists/src/handlers/replace_string_with_char.rs rename to crates/ide-assists/src/handlers/replace_string_with_char.rs diff --git a/crates/ide_assists/src/handlers/replace_try_expr_with_match.rs b/crates/ide-assists/src/handlers/replace_try_expr_with_match.rs similarity index 100% rename from crates/ide_assists/src/handlers/replace_try_expr_with_match.rs rename to crates/ide-assists/src/handlers/replace_try_expr_with_match.rs diff --git a/crates/ide_assists/src/handlers/replace_turbofish_with_explicit_type.rs b/crates/ide-assists/src/handlers/replace_turbofish_with_explicit_type.rs similarity index 100% rename from crates/ide_assists/src/handlers/replace_turbofish_with_explicit_type.rs rename to crates/ide-assists/src/handlers/replace_turbofish_with_explicit_type.rs diff --git a/crates/ide_assists/src/handlers/sort_items.rs b/crates/ide-assists/src/handlers/sort_items.rs similarity index 100% rename from crates/ide_assists/src/handlers/sort_items.rs rename to crates/ide-assists/src/handlers/sort_items.rs diff --git a/crates/ide_assists/src/handlers/split_import.rs b/crates/ide-assists/src/handlers/split_import.rs similarity index 100% rename from crates/ide_assists/src/handlers/split_import.rs rename to crates/ide-assists/src/handlers/split_import.rs diff --git a/crates/ide_assists/src/handlers/toggle_ignore.rs b/crates/ide-assists/src/handlers/toggle_ignore.rs similarity index 100% rename from crates/ide_assists/src/handlers/toggle_ignore.rs rename to crates/ide-assists/src/handlers/toggle_ignore.rs diff --git a/crates/ide_assists/src/handlers/unmerge_use.rs b/crates/ide-assists/src/handlers/unmerge_use.rs similarity index 100% rename from crates/ide_assists/src/handlers/unmerge_use.rs rename to crates/ide-assists/src/handlers/unmerge_use.rs diff --git a/crates/ide_assists/src/handlers/unnecessary_async.rs b/crates/ide-assists/src/handlers/unnecessary_async.rs similarity index 100% rename from crates/ide_assists/src/handlers/unnecessary_async.rs rename to crates/ide-assists/src/handlers/unnecessary_async.rs diff --git a/crates/ide_assists/src/handlers/unwrap_block.rs b/crates/ide-assists/src/handlers/unwrap_block.rs similarity index 100% rename from crates/ide_assists/src/handlers/unwrap_block.rs rename to crates/ide-assists/src/handlers/unwrap_block.rs diff --git a/crates/ide_assists/src/handlers/unwrap_result_return_type.rs b/crates/ide-assists/src/handlers/unwrap_result_return_type.rs similarity index 100% rename from crates/ide_assists/src/handlers/unwrap_result_return_type.rs rename to crates/ide-assists/src/handlers/unwrap_result_return_type.rs diff --git a/crates/ide_assists/src/handlers/wrap_return_type_in_result.rs b/crates/ide-assists/src/handlers/wrap_return_type_in_result.rs similarity index 100% rename from crates/ide_assists/src/handlers/wrap_return_type_in_result.rs rename to crates/ide-assists/src/handlers/wrap_return_type_in_result.rs diff --git a/crates/ide_assists/src/lib.rs b/crates/ide-assists/src/lib.rs similarity index 100% rename from crates/ide_assists/src/lib.rs rename to crates/ide-assists/src/lib.rs diff --git a/crates/ide_assists/src/tests.rs b/crates/ide-assists/src/tests.rs similarity index 100% rename from crates/ide_assists/src/tests.rs rename to crates/ide-assists/src/tests.rs diff --git a/crates/ide_assists/src/tests/generated.rs b/crates/ide-assists/src/tests/generated.rs similarity index 100% rename from crates/ide_assists/src/tests/generated.rs rename to crates/ide-assists/src/tests/generated.rs diff --git a/crates/ide_assists/src/tests/sourcegen.rs b/crates/ide-assists/src/tests/sourcegen.rs similarity index 100% rename from crates/ide_assists/src/tests/sourcegen.rs rename to crates/ide-assists/src/tests/sourcegen.rs diff --git a/crates/ide_assists/src/utils.rs b/crates/ide-assists/src/utils.rs similarity index 100% rename from crates/ide_assists/src/utils.rs rename to crates/ide-assists/src/utils.rs diff --git a/crates/ide_assists/src/utils/gen_trait_fn_body.rs b/crates/ide-assists/src/utils/gen_trait_fn_body.rs similarity index 100% rename from crates/ide_assists/src/utils/gen_trait_fn_body.rs rename to crates/ide-assists/src/utils/gen_trait_fn_body.rs diff --git a/crates/ide_assists/src/utils/suggest_name.rs b/crates/ide-assists/src/utils/suggest_name.rs similarity index 100% rename from crates/ide_assists/src/utils/suggest_name.rs rename to crates/ide-assists/src/utils/suggest_name.rs diff --git a/crates/ide_completion/Cargo.toml b/crates/ide-completion/Cargo.toml similarity index 66% rename from crates/ide_completion/Cargo.toml rename to crates/ide-completion/Cargo.toml index a82223ca900..4369e11bd71 100644 --- a/crates/ide_completion/Cargo.toml +++ b/crates/ide-completion/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "ide_completion" +name = "ide-completion" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" @@ -18,16 +18,16 @@ smallvec = "1.8.0" stdx = { path = "../stdx", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } -text_edit = { path = "../text_edit", version = "0.0.0" } -base_db = { path = "../base_db", version = "0.0.0" } -ide_db = { path = "../ide_db", version = "0.0.0" } +text-edit = { path = "../text-edit", version = "0.0.0" } +base-db = { path = "../base-db", version = "0.0.0" } +ide-db = { path = "../ide-db", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } # completions crate should depend only on the top-level `hir` package. if you need -# something from some `hir_xxx` subpackage, reexport the API via `hir`. +# something from some `hir-xxx` subpackage, reexport the API via `hir`. hir = { path = "../hir", version = "0.0.0" } [dev-dependencies] expect-test = "1.2.2" -test_utils = { path = "../test_utils" } +test-utils = { path = "../test-utils" } diff --git a/crates/ide_completion/src/completions.rs b/crates/ide-completion/src/completions.rs similarity index 100% rename from crates/ide_completion/src/completions.rs rename to crates/ide-completion/src/completions.rs diff --git a/crates/ide_completion/src/completions/attribute.rs b/crates/ide-completion/src/completions/attribute.rs similarity index 100% rename from crates/ide_completion/src/completions/attribute.rs rename to crates/ide-completion/src/completions/attribute.rs diff --git a/crates/ide_completion/src/completions/attribute/cfg.rs b/crates/ide-completion/src/completions/attribute/cfg.rs similarity index 100% rename from crates/ide_completion/src/completions/attribute/cfg.rs rename to crates/ide-completion/src/completions/attribute/cfg.rs diff --git a/crates/ide_completion/src/completions/attribute/derive.rs b/crates/ide-completion/src/completions/attribute/derive.rs similarity index 100% rename from crates/ide_completion/src/completions/attribute/derive.rs rename to crates/ide-completion/src/completions/attribute/derive.rs diff --git a/crates/ide_completion/src/completions/attribute/lint.rs b/crates/ide-completion/src/completions/attribute/lint.rs similarity index 100% rename from crates/ide_completion/src/completions/attribute/lint.rs rename to crates/ide-completion/src/completions/attribute/lint.rs diff --git a/crates/ide_completion/src/completions/attribute/repr.rs b/crates/ide-completion/src/completions/attribute/repr.rs similarity index 100% rename from crates/ide_completion/src/completions/attribute/repr.rs rename to crates/ide-completion/src/completions/attribute/repr.rs diff --git a/crates/ide_completion/src/completions/dot.rs b/crates/ide-completion/src/completions/dot.rs similarity index 100% rename from crates/ide_completion/src/completions/dot.rs rename to crates/ide-completion/src/completions/dot.rs diff --git a/crates/ide_completion/src/completions/extern_abi.rs b/crates/ide-completion/src/completions/extern_abi.rs similarity index 100% rename from crates/ide_completion/src/completions/extern_abi.rs rename to crates/ide-completion/src/completions/extern_abi.rs diff --git a/crates/ide_completion/src/completions/flyimport.rs b/crates/ide-completion/src/completions/flyimport.rs similarity index 100% rename from crates/ide_completion/src/completions/flyimport.rs rename to crates/ide-completion/src/completions/flyimport.rs diff --git a/crates/ide_completion/src/completions/fn_param.rs b/crates/ide-completion/src/completions/fn_param.rs similarity index 100% rename from crates/ide_completion/src/completions/fn_param.rs rename to crates/ide-completion/src/completions/fn_param.rs diff --git a/crates/ide_completion/src/completions/format_string.rs b/crates/ide-completion/src/completions/format_string.rs similarity index 100% rename from crates/ide_completion/src/completions/format_string.rs rename to crates/ide-completion/src/completions/format_string.rs diff --git a/crates/ide_completion/src/completions/keyword.rs b/crates/ide-completion/src/completions/keyword.rs similarity index 100% rename from crates/ide_completion/src/completions/keyword.rs rename to crates/ide-completion/src/completions/keyword.rs diff --git a/crates/ide_completion/src/completions/lifetime.rs b/crates/ide-completion/src/completions/lifetime.rs similarity index 100% rename from crates/ide_completion/src/completions/lifetime.rs rename to crates/ide-completion/src/completions/lifetime.rs diff --git a/crates/ide_completion/src/completions/mod_.rs b/crates/ide-completion/src/completions/mod_.rs similarity index 100% rename from crates/ide_completion/src/completions/mod_.rs rename to crates/ide-completion/src/completions/mod_.rs diff --git a/crates/ide_completion/src/completions/pattern.rs b/crates/ide-completion/src/completions/pattern.rs similarity index 100% rename from crates/ide_completion/src/completions/pattern.rs rename to crates/ide-completion/src/completions/pattern.rs diff --git a/crates/ide_completion/src/completions/postfix.rs b/crates/ide-completion/src/completions/postfix.rs similarity index 100% rename from crates/ide_completion/src/completions/postfix.rs rename to crates/ide-completion/src/completions/postfix.rs diff --git a/crates/ide_completion/src/completions/postfix/format_like.rs b/crates/ide-completion/src/completions/postfix/format_like.rs similarity index 100% rename from crates/ide_completion/src/completions/postfix/format_like.rs rename to crates/ide-completion/src/completions/postfix/format_like.rs diff --git a/crates/ide_completion/src/completions/qualified_path.rs b/crates/ide-completion/src/completions/qualified_path.rs similarity index 100% rename from crates/ide_completion/src/completions/qualified_path.rs rename to crates/ide-completion/src/completions/qualified_path.rs diff --git a/crates/ide_completion/src/completions/record.rs b/crates/ide-completion/src/completions/record.rs similarity index 100% rename from crates/ide_completion/src/completions/record.rs rename to crates/ide-completion/src/completions/record.rs diff --git a/crates/ide_completion/src/completions/snippet.rs b/crates/ide-completion/src/completions/snippet.rs similarity index 100% rename from crates/ide_completion/src/completions/snippet.rs rename to crates/ide-completion/src/completions/snippet.rs diff --git a/crates/ide_completion/src/completions/trait_impl.rs b/crates/ide-completion/src/completions/trait_impl.rs similarity index 100% rename from crates/ide_completion/src/completions/trait_impl.rs rename to crates/ide-completion/src/completions/trait_impl.rs diff --git a/crates/ide_completion/src/completions/unqualified_path.rs b/crates/ide-completion/src/completions/unqualified_path.rs similarity index 100% rename from crates/ide_completion/src/completions/unqualified_path.rs rename to crates/ide-completion/src/completions/unqualified_path.rs diff --git a/crates/ide_completion/src/completions/use_.rs b/crates/ide-completion/src/completions/use_.rs similarity index 100% rename from crates/ide_completion/src/completions/use_.rs rename to crates/ide-completion/src/completions/use_.rs diff --git a/crates/ide_completion/src/completions/vis.rs b/crates/ide-completion/src/completions/vis.rs similarity index 100% rename from crates/ide_completion/src/completions/vis.rs rename to crates/ide-completion/src/completions/vis.rs diff --git a/crates/ide_completion/src/config.rs b/crates/ide-completion/src/config.rs similarity index 100% rename from crates/ide_completion/src/config.rs rename to crates/ide-completion/src/config.rs diff --git a/crates/ide_completion/src/context.rs b/crates/ide-completion/src/context.rs similarity index 100% rename from crates/ide_completion/src/context.rs rename to crates/ide-completion/src/context.rs diff --git a/crates/ide_completion/src/item.rs b/crates/ide-completion/src/item.rs similarity index 100% rename from crates/ide_completion/src/item.rs rename to crates/ide-completion/src/item.rs diff --git a/crates/ide_completion/src/lib.rs b/crates/ide-completion/src/lib.rs similarity index 100% rename from crates/ide_completion/src/lib.rs rename to crates/ide-completion/src/lib.rs diff --git a/crates/ide_completion/src/patterns.rs b/crates/ide-completion/src/patterns.rs similarity index 100% rename from crates/ide_completion/src/patterns.rs rename to crates/ide-completion/src/patterns.rs diff --git a/crates/ide_completion/src/render.rs b/crates/ide-completion/src/render.rs similarity index 100% rename from crates/ide_completion/src/render.rs rename to crates/ide-completion/src/render.rs diff --git a/crates/ide_completion/src/render/const_.rs b/crates/ide-completion/src/render/const_.rs similarity index 100% rename from crates/ide_completion/src/render/const_.rs rename to crates/ide-completion/src/render/const_.rs diff --git a/crates/ide_completion/src/render/function.rs b/crates/ide-completion/src/render/function.rs similarity index 100% rename from crates/ide_completion/src/render/function.rs rename to crates/ide-completion/src/render/function.rs diff --git a/crates/ide_completion/src/render/literal.rs b/crates/ide-completion/src/render/literal.rs similarity index 100% rename from crates/ide_completion/src/render/literal.rs rename to crates/ide-completion/src/render/literal.rs diff --git a/crates/ide_completion/src/render/macro_.rs b/crates/ide-completion/src/render/macro_.rs similarity index 100% rename from crates/ide_completion/src/render/macro_.rs rename to crates/ide-completion/src/render/macro_.rs diff --git a/crates/ide_completion/src/render/pattern.rs b/crates/ide-completion/src/render/pattern.rs similarity index 100% rename from crates/ide_completion/src/render/pattern.rs rename to crates/ide-completion/src/render/pattern.rs diff --git a/crates/ide_completion/src/render/type_alias.rs b/crates/ide-completion/src/render/type_alias.rs similarity index 100% rename from crates/ide_completion/src/render/type_alias.rs rename to crates/ide-completion/src/render/type_alias.rs diff --git a/crates/ide_completion/src/render/union_literal.rs b/crates/ide-completion/src/render/union_literal.rs similarity index 100% rename from crates/ide_completion/src/render/union_literal.rs rename to crates/ide-completion/src/render/union_literal.rs diff --git a/crates/ide_completion/src/render/variant.rs b/crates/ide-completion/src/render/variant.rs similarity index 100% rename from crates/ide_completion/src/render/variant.rs rename to crates/ide-completion/src/render/variant.rs diff --git a/crates/ide_completion/src/snippet.rs b/crates/ide-completion/src/snippet.rs similarity index 100% rename from crates/ide_completion/src/snippet.rs rename to crates/ide-completion/src/snippet.rs diff --git a/crates/ide_completion/src/tests.rs b/crates/ide-completion/src/tests.rs similarity index 100% rename from crates/ide_completion/src/tests.rs rename to crates/ide-completion/src/tests.rs diff --git a/crates/ide_completion/src/tests/attribute.rs b/crates/ide-completion/src/tests/attribute.rs similarity index 100% rename from crates/ide_completion/src/tests/attribute.rs rename to crates/ide-completion/src/tests/attribute.rs diff --git a/crates/ide_completion/src/tests/expression.rs b/crates/ide-completion/src/tests/expression.rs similarity index 100% rename from crates/ide_completion/src/tests/expression.rs rename to crates/ide-completion/src/tests/expression.rs diff --git a/crates/ide_completion/src/tests/flyimport.rs b/crates/ide-completion/src/tests/flyimport.rs similarity index 100% rename from crates/ide_completion/src/tests/flyimport.rs rename to crates/ide-completion/src/tests/flyimport.rs diff --git a/crates/ide_completion/src/tests/fn_param.rs b/crates/ide-completion/src/tests/fn_param.rs similarity index 100% rename from crates/ide_completion/src/tests/fn_param.rs rename to crates/ide-completion/src/tests/fn_param.rs diff --git a/crates/ide_completion/src/tests/item.rs b/crates/ide-completion/src/tests/item.rs similarity index 100% rename from crates/ide_completion/src/tests/item.rs rename to crates/ide-completion/src/tests/item.rs diff --git a/crates/ide_completion/src/tests/item_list.rs b/crates/ide-completion/src/tests/item_list.rs similarity index 100% rename from crates/ide_completion/src/tests/item_list.rs rename to crates/ide-completion/src/tests/item_list.rs diff --git a/crates/ide_completion/src/tests/pattern.rs b/crates/ide-completion/src/tests/pattern.rs similarity index 100% rename from crates/ide_completion/src/tests/pattern.rs rename to crates/ide-completion/src/tests/pattern.rs diff --git a/crates/ide_completion/src/tests/predicate.rs b/crates/ide-completion/src/tests/predicate.rs similarity index 100% rename from crates/ide_completion/src/tests/predicate.rs rename to crates/ide-completion/src/tests/predicate.rs diff --git a/crates/ide_completion/src/tests/proc_macros.rs b/crates/ide-completion/src/tests/proc_macros.rs similarity index 100% rename from crates/ide_completion/src/tests/proc_macros.rs rename to crates/ide-completion/src/tests/proc_macros.rs diff --git a/crates/ide_completion/src/tests/record.rs b/crates/ide-completion/src/tests/record.rs similarity index 100% rename from crates/ide_completion/src/tests/record.rs rename to crates/ide-completion/src/tests/record.rs diff --git a/crates/ide_completion/src/tests/type_pos.rs b/crates/ide-completion/src/tests/type_pos.rs similarity index 100% rename from crates/ide_completion/src/tests/type_pos.rs rename to crates/ide-completion/src/tests/type_pos.rs diff --git a/crates/ide_completion/src/tests/use_tree.rs b/crates/ide-completion/src/tests/use_tree.rs similarity index 100% rename from crates/ide_completion/src/tests/use_tree.rs rename to crates/ide-completion/src/tests/use_tree.rs diff --git a/crates/ide_completion/src/tests/visibility.rs b/crates/ide-completion/src/tests/visibility.rs similarity index 100% rename from crates/ide_completion/src/tests/visibility.rs rename to crates/ide-completion/src/tests/visibility.rs diff --git a/crates/ide_db/Cargo.toml b/crates/ide-db/Cargo.toml similarity index 78% rename from crates/ide_db/Cargo.toml rename to crates/ide-db/Cargo.toml index 8c4fe95de18..c5f0cb3c014 100644 --- a/crates/ide_db/Cargo.toml +++ b/crates/ide-db/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "ide_db" +name = "ide-db" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" @@ -24,16 +24,16 @@ indexmap = "1.8.0" stdx = { path = "../stdx", version = "0.0.0" } parser = { path = "../parser", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } -text_edit = { path = "../text_edit", version = "0.0.0" } -base_db = { path = "../base_db", version = "0.0.0" } +text-edit = { path = "../text-edit", version = "0.0.0" } +base-db = { path = "../base-db", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } # ide should depend only on the top-level `hir` package. if you need -# something from some `hir_xxx` subpackage, reexport the API via `hir`. +# something from some `hir-xxx` subpackage, reexport the API via `hir`. hir = { path = "../hir", version = "0.0.0" } limit = { path = "../limit", version = "0.0.0" } [dev-dependencies] -test_utils = { path = "../test_utils" } +test-utils = { path = "../test-utils" } sourcegen = { path = "../sourcegen" } xshell = "0.2.1" expect-test = "1.2.2" diff --git a/crates/ide_db/src/active_parameter.rs b/crates/ide-db/src/active_parameter.rs similarity index 100% rename from crates/ide_db/src/active_parameter.rs rename to crates/ide-db/src/active_parameter.rs diff --git a/crates/ide_db/src/apply_change.rs b/crates/ide-db/src/apply_change.rs similarity index 100% rename from crates/ide_db/src/apply_change.rs rename to crates/ide-db/src/apply_change.rs diff --git a/crates/ide_db/src/assists.rs b/crates/ide-db/src/assists.rs similarity index 100% rename from crates/ide_db/src/assists.rs rename to crates/ide-db/src/assists.rs diff --git a/crates/ide_db/src/defs.rs b/crates/ide-db/src/defs.rs similarity index 100% rename from crates/ide_db/src/defs.rs rename to crates/ide-db/src/defs.rs diff --git a/crates/ide_db/src/famous_defs.rs b/crates/ide-db/src/famous_defs.rs similarity index 100% rename from crates/ide_db/src/famous_defs.rs rename to crates/ide-db/src/famous_defs.rs diff --git a/crates/ide_db/src/generated/lints.rs b/crates/ide-db/src/generated/lints.rs similarity index 100% rename from crates/ide_db/src/generated/lints.rs rename to crates/ide-db/src/generated/lints.rs diff --git a/crates/ide_db/src/helpers.rs b/crates/ide-db/src/helpers.rs similarity index 100% rename from crates/ide_db/src/helpers.rs rename to crates/ide-db/src/helpers.rs diff --git a/crates/ide_db/src/imports/import_assets.rs b/crates/ide-db/src/imports/import_assets.rs similarity index 100% rename from crates/ide_db/src/imports/import_assets.rs rename to crates/ide-db/src/imports/import_assets.rs diff --git a/crates/ide_db/src/imports/insert_use.rs b/crates/ide-db/src/imports/insert_use.rs similarity index 100% rename from crates/ide_db/src/imports/insert_use.rs rename to crates/ide-db/src/imports/insert_use.rs diff --git a/crates/ide_db/src/imports/insert_use/tests.rs b/crates/ide-db/src/imports/insert_use/tests.rs similarity index 100% rename from crates/ide_db/src/imports/insert_use/tests.rs rename to crates/ide-db/src/imports/insert_use/tests.rs diff --git a/crates/ide_db/src/imports/merge_imports.rs b/crates/ide-db/src/imports/merge_imports.rs similarity index 100% rename from crates/ide_db/src/imports/merge_imports.rs rename to crates/ide-db/src/imports/merge_imports.rs diff --git a/crates/ide_db/src/items_locator.rs b/crates/ide-db/src/items_locator.rs similarity index 100% rename from crates/ide_db/src/items_locator.rs rename to crates/ide-db/src/items_locator.rs diff --git a/crates/ide_db/src/label.rs b/crates/ide-db/src/label.rs similarity index 100% rename from crates/ide_db/src/label.rs rename to crates/ide-db/src/label.rs diff --git a/crates/ide_db/src/lib.rs b/crates/ide-db/src/lib.rs similarity index 100% rename from crates/ide_db/src/lib.rs rename to crates/ide-db/src/lib.rs diff --git a/crates/ide_db/src/line_index.rs b/crates/ide-db/src/line_index.rs similarity index 100% rename from crates/ide_db/src/line_index.rs rename to crates/ide-db/src/line_index.rs diff --git a/crates/ide_db/src/path_transform.rs b/crates/ide-db/src/path_transform.rs similarity index 100% rename from crates/ide_db/src/path_transform.rs rename to crates/ide-db/src/path_transform.rs diff --git a/crates/ide_db/src/rename.rs b/crates/ide-db/src/rename.rs similarity index 100% rename from crates/ide_db/src/rename.rs rename to crates/ide-db/src/rename.rs diff --git a/crates/ide_db/src/rust_doc.rs b/crates/ide-db/src/rust_doc.rs similarity index 100% rename from crates/ide_db/src/rust_doc.rs rename to crates/ide-db/src/rust_doc.rs diff --git a/crates/ide_db/src/search.rs b/crates/ide-db/src/search.rs similarity index 100% rename from crates/ide_db/src/search.rs rename to crates/ide-db/src/search.rs diff --git a/crates/ide_db/src/source_change.rs b/crates/ide-db/src/source_change.rs similarity index 100% rename from crates/ide_db/src/source_change.rs rename to crates/ide-db/src/source_change.rs diff --git a/crates/ide_db/src/symbol_index.rs b/crates/ide-db/src/symbol_index.rs similarity index 100% rename from crates/ide_db/src/symbol_index.rs rename to crates/ide-db/src/symbol_index.rs diff --git a/crates/ide_db/src/syntax_helpers/format_string.rs b/crates/ide-db/src/syntax_helpers/format_string.rs similarity index 100% rename from crates/ide_db/src/syntax_helpers/format_string.rs rename to crates/ide-db/src/syntax_helpers/format_string.rs diff --git a/crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs b/crates/ide-db/src/syntax_helpers/insert_whitespace_into_node.rs similarity index 100% rename from crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs rename to crates/ide-db/src/syntax_helpers/insert_whitespace_into_node.rs diff --git a/crates/ide_db/src/syntax_helpers/node_ext.rs b/crates/ide-db/src/syntax_helpers/node_ext.rs similarity index 100% rename from crates/ide_db/src/syntax_helpers/node_ext.rs rename to crates/ide-db/src/syntax_helpers/node_ext.rs diff --git a/crates/ide_db/src/test_data/test_symbol_index_collection.txt b/crates/ide-db/src/test_data/test_symbol_index_collection.txt similarity index 100% rename from crates/ide_db/src/test_data/test_symbol_index_collection.txt rename to crates/ide-db/src/test_data/test_symbol_index_collection.txt diff --git a/crates/ide_db/src/tests/sourcegen_lints.rs b/crates/ide-db/src/tests/sourcegen_lints.rs similarity index 100% rename from crates/ide_db/src/tests/sourcegen_lints.rs rename to crates/ide-db/src/tests/sourcegen_lints.rs diff --git a/crates/ide_db/src/traits.rs b/crates/ide-db/src/traits.rs similarity index 100% rename from crates/ide_db/src/traits.rs rename to crates/ide-db/src/traits.rs diff --git a/crates/ide_db/src/ty_filter.rs b/crates/ide-db/src/ty_filter.rs similarity index 100% rename from crates/ide_db/src/ty_filter.rs rename to crates/ide-db/src/ty_filter.rs diff --git a/crates/ide_diagnostics/Cargo.toml b/crates/ide-diagnostics/Cargo.toml similarity index 75% rename from crates/ide_diagnostics/Cargo.toml rename to crates/ide-diagnostics/Cargo.toml index 20bd4a2ed24..f59da69dfb1 100644 --- a/crates/ide_diagnostics/Cargo.toml +++ b/crates/ide-diagnostics/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "ide_diagnostics" +name = "ide-diagnostics" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" @@ -19,13 +19,13 @@ either = "1.6.1" profile = { path = "../profile", version = "0.0.0" } stdx = { path = "../stdx", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } -text_edit = { path = "../text_edit", version = "0.0.0" } +text-edit = { path = "../text-edit", version = "0.0.0" } cfg = { path = "../cfg", version = "0.0.0" } hir = { path = "../hir", version = "0.0.0" } -ide_db = { path = "../ide_db", version = "0.0.0" } +ide-db = { path = "../ide-db", version = "0.0.0" } [dev-dependencies] expect-test = "1.2.2" -test_utils = { path = "../test_utils" } +test-utils = { path = "../test-utils" } sourcegen = { path = "../sourcegen" } diff --git a/crates/ide_diagnostics/src/handlers/break_outside_of_loop.rs b/crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/break_outside_of_loop.rs rename to crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs diff --git a/crates/ide_diagnostics/src/handlers/field_shorthand.rs b/crates/ide-diagnostics/src/handlers/field_shorthand.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/field_shorthand.rs rename to crates/ide-diagnostics/src/handlers/field_shorthand.rs diff --git a/crates/ide_diagnostics/src/handlers/inactive_code.rs b/crates/ide-diagnostics/src/handlers/inactive_code.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/inactive_code.rs rename to crates/ide-diagnostics/src/handlers/inactive_code.rs diff --git a/crates/ide_diagnostics/src/handlers/incorrect_case.rs b/crates/ide-diagnostics/src/handlers/incorrect_case.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/incorrect_case.rs rename to crates/ide-diagnostics/src/handlers/incorrect_case.rs diff --git a/crates/ide_diagnostics/src/handlers/invalid_derive_target.rs b/crates/ide-diagnostics/src/handlers/invalid_derive_target.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/invalid_derive_target.rs rename to crates/ide-diagnostics/src/handlers/invalid_derive_target.rs diff --git a/crates/ide_diagnostics/src/handlers/macro_error.rs b/crates/ide-diagnostics/src/handlers/macro_error.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/macro_error.rs rename to crates/ide-diagnostics/src/handlers/macro_error.rs diff --git a/crates/ide_diagnostics/src/handlers/malformed_derive.rs b/crates/ide-diagnostics/src/handlers/malformed_derive.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/malformed_derive.rs rename to crates/ide-diagnostics/src/handlers/malformed_derive.rs diff --git a/crates/ide_diagnostics/src/handlers/mismatched_arg_count.rs b/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/mismatched_arg_count.rs rename to crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs diff --git a/crates/ide_diagnostics/src/handlers/missing_fields.rs b/crates/ide-diagnostics/src/handlers/missing_fields.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/missing_fields.rs rename to crates/ide-diagnostics/src/handlers/missing_fields.rs diff --git a/crates/ide_diagnostics/src/handlers/missing_match_arms.rs b/crates/ide-diagnostics/src/handlers/missing_match_arms.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/missing_match_arms.rs rename to crates/ide-diagnostics/src/handlers/missing_match_arms.rs diff --git a/crates/ide_diagnostics/src/handlers/missing_unsafe.rs b/crates/ide-diagnostics/src/handlers/missing_unsafe.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/missing_unsafe.rs rename to crates/ide-diagnostics/src/handlers/missing_unsafe.rs diff --git a/crates/ide_diagnostics/src/handlers/no_such_field.rs b/crates/ide-diagnostics/src/handlers/no_such_field.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/no_such_field.rs rename to crates/ide-diagnostics/src/handlers/no_such_field.rs diff --git a/crates/ide_diagnostics/src/handlers/replace_filter_map_next_with_find_map.rs b/crates/ide-diagnostics/src/handlers/replace_filter_map_next_with_find_map.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/replace_filter_map_next_with_find_map.rs rename to crates/ide-diagnostics/src/handlers/replace_filter_map_next_with_find_map.rs diff --git a/crates/ide_diagnostics/src/handlers/type_mismatch.rs b/crates/ide-diagnostics/src/handlers/type_mismatch.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/type_mismatch.rs rename to crates/ide-diagnostics/src/handlers/type_mismatch.rs diff --git a/crates/ide_diagnostics/src/handlers/unimplemented_builtin_macro.rs b/crates/ide-diagnostics/src/handlers/unimplemented_builtin_macro.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/unimplemented_builtin_macro.rs rename to crates/ide-diagnostics/src/handlers/unimplemented_builtin_macro.rs diff --git a/crates/ide_diagnostics/src/handlers/unlinked_file.rs b/crates/ide-diagnostics/src/handlers/unlinked_file.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/unlinked_file.rs rename to crates/ide-diagnostics/src/handlers/unlinked_file.rs diff --git a/crates/ide_diagnostics/src/handlers/unresolved_extern_crate.rs b/crates/ide-diagnostics/src/handlers/unresolved_extern_crate.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/unresolved_extern_crate.rs rename to crates/ide-diagnostics/src/handlers/unresolved_extern_crate.rs diff --git a/crates/ide_diagnostics/src/handlers/unresolved_import.rs b/crates/ide-diagnostics/src/handlers/unresolved_import.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/unresolved_import.rs rename to crates/ide-diagnostics/src/handlers/unresolved_import.rs diff --git a/crates/ide_diagnostics/src/handlers/unresolved_macro_call.rs b/crates/ide-diagnostics/src/handlers/unresolved_macro_call.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/unresolved_macro_call.rs rename to crates/ide-diagnostics/src/handlers/unresolved_macro_call.rs diff --git a/crates/ide_diagnostics/src/handlers/unresolved_module.rs b/crates/ide-diagnostics/src/handlers/unresolved_module.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/unresolved_module.rs rename to crates/ide-diagnostics/src/handlers/unresolved_module.rs diff --git a/crates/ide_diagnostics/src/handlers/unresolved_proc_macro.rs b/crates/ide-diagnostics/src/handlers/unresolved_proc_macro.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/unresolved_proc_macro.rs rename to crates/ide-diagnostics/src/handlers/unresolved_proc_macro.rs diff --git a/crates/ide_diagnostics/src/handlers/useless_braces.rs b/crates/ide-diagnostics/src/handlers/useless_braces.rs similarity index 100% rename from crates/ide_diagnostics/src/handlers/useless_braces.rs rename to crates/ide-diagnostics/src/handlers/useless_braces.rs diff --git a/crates/ide_diagnostics/src/lib.rs b/crates/ide-diagnostics/src/lib.rs similarity index 100% rename from crates/ide_diagnostics/src/lib.rs rename to crates/ide-diagnostics/src/lib.rs diff --git a/crates/ide_diagnostics/src/tests.rs b/crates/ide-diagnostics/src/tests.rs similarity index 100% rename from crates/ide_diagnostics/src/tests.rs rename to crates/ide-diagnostics/src/tests.rs diff --git a/crates/ide_diagnostics/src/tests/sourcegen.rs b/crates/ide-diagnostics/src/tests/sourcegen.rs similarity index 100% rename from crates/ide_diagnostics/src/tests/sourcegen.rs rename to crates/ide-diagnostics/src/tests/sourcegen.rs diff --git a/crates/ide_ssr/Cargo.toml b/crates/ide-ssr/Cargo.toml similarity index 74% rename from crates/ide_ssr/Cargo.toml rename to crates/ide-ssr/Cargo.toml index a736b900ecb..a6ffa51b4e0 100644 --- a/crates/ide_ssr/Cargo.toml +++ b/crates/ide-ssr/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "ide_ssr" +name = "ide-ssr" version = "0.0.0" description = "Structural search and replace of Rust code" license = "MIT OR Apache-2.0" @@ -15,12 +15,12 @@ cov-mark = "2.0.0-pre.1" itertools = "0.10.3" -text_edit = { path = "../text_edit", version = "0.0.0" } +text-edit = { path = "../text-edit", version = "0.0.0" } parser = { path = "../parser", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } -ide_db = { path = "../ide_db", version = "0.0.0" } +ide-db = { path = "../ide-db", version = "0.0.0" } hir = { path = "../hir", version = "0.0.0" } [dev-dependencies] -test_utils = { path = "../test_utils" } +test-utils = { path = "../test-utils" } expect-test = "1.2.2" diff --git a/crates/ide_ssr/src/errors.rs b/crates/ide-ssr/src/errors.rs similarity index 100% rename from crates/ide_ssr/src/errors.rs rename to crates/ide-ssr/src/errors.rs diff --git a/crates/ide_ssr/src/fragments.rs b/crates/ide-ssr/src/fragments.rs similarity index 100% rename from crates/ide_ssr/src/fragments.rs rename to crates/ide-ssr/src/fragments.rs diff --git a/crates/ide_ssr/src/from_comment.rs b/crates/ide-ssr/src/from_comment.rs similarity index 100% rename from crates/ide_ssr/src/from_comment.rs rename to crates/ide-ssr/src/from_comment.rs diff --git a/crates/ide_ssr/src/lib.rs b/crates/ide-ssr/src/lib.rs similarity index 100% rename from crates/ide_ssr/src/lib.rs rename to crates/ide-ssr/src/lib.rs diff --git a/crates/ide_ssr/src/matching.rs b/crates/ide-ssr/src/matching.rs similarity index 100% rename from crates/ide_ssr/src/matching.rs rename to crates/ide-ssr/src/matching.rs diff --git a/crates/ide_ssr/src/nester.rs b/crates/ide-ssr/src/nester.rs similarity index 100% rename from crates/ide_ssr/src/nester.rs rename to crates/ide-ssr/src/nester.rs diff --git a/crates/ide_ssr/src/parsing.rs b/crates/ide-ssr/src/parsing.rs similarity index 100% rename from crates/ide_ssr/src/parsing.rs rename to crates/ide-ssr/src/parsing.rs diff --git a/crates/ide_ssr/src/replacing.rs b/crates/ide-ssr/src/replacing.rs similarity index 100% rename from crates/ide_ssr/src/replacing.rs rename to crates/ide-ssr/src/replacing.rs diff --git a/crates/ide_ssr/src/resolving.rs b/crates/ide-ssr/src/resolving.rs similarity index 100% rename from crates/ide_ssr/src/resolving.rs rename to crates/ide-ssr/src/resolving.rs diff --git a/crates/ide_ssr/src/search.rs b/crates/ide-ssr/src/search.rs similarity index 100% rename from crates/ide_ssr/src/search.rs rename to crates/ide-ssr/src/search.rs diff --git a/crates/ide_ssr/src/tests.rs b/crates/ide-ssr/src/tests.rs similarity index 100% rename from crates/ide_ssr/src/tests.rs rename to crates/ide-ssr/src/tests.rs diff --git a/crates/ide/Cargo.toml b/crates/ide/Cargo.toml index f8bb1e4c015..23cd0f64433 100644 --- a/crates/ide/Cargo.toml +++ b/crates/ide/Cargo.toml @@ -23,22 +23,22 @@ dot = "0.1.4" stdx = { path = "../stdx", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } -text_edit = { path = "../text_edit", version = "0.0.0" } -ide_db = { path = "../ide_db", version = "0.0.0" } +text-edit = { path = "../text-edit", version = "0.0.0" } +ide-db = { path = "../ide-db", version = "0.0.0" } cfg = { path = "../cfg", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } -ide_assists = { path = "../ide_assists", version = "0.0.0" } -ide_diagnostics = { path = "../ide_diagnostics", version = "0.0.0" } -ide_ssr = { path = "../ide_ssr", version = "0.0.0" } -ide_completion = { path = "../ide_completion", version = "0.0.0" } +ide-assists = { path = "../ide-assists", version = "0.0.0" } +ide-diagnostics = { path = "../ide-diagnostics", version = "0.0.0" } +ide-ssr = { path = "../ide-ssr", version = "0.0.0" } +ide-completion = { path = "../ide-completion", version = "0.0.0" } # ide should depend only on the top-level `hir` package. if you need -# something from some `hir_xxx` subpackage, reexport the API via `hir`. +# something from some `hir-xxx` subpackage, reexport the API via `hir`. hir = { path = "../hir", version = "0.0.0" } [target.'cfg(not(any(target_arch = "wasm32", target_os = "emscripten")))'.dependencies] toolchain = { path = "../toolchain", version = "0.0.0" } [dev-dependencies] -test_utils = { path = "../test_utils" } +test-utils = { path = "../test-utils" } expect-test = "1.2.2" diff --git a/crates/mbe/Cargo.toml b/crates/mbe/Cargo.toml index 1453ec4c690..d6d15dd19d8 100644 --- a/crates/mbe/Cargo.toml +++ b/crates/mbe/Cargo.toml @@ -21,4 +21,4 @@ tt = { path = "../tt", version = "0.0.0" } stdx = { path = "../stdx", version = "0.0.0" } [dev-dependencies] -test_utils = { path = "../test_utils" } +test-utils = { path = "../test-utils" } diff --git a/crates/proc_macro_api/Cargo.toml b/crates/proc-macro-api/Cargo.toml similarity index 90% rename from crates/proc_macro_api/Cargo.toml rename to crates/proc-macro-api/Cargo.toml index 000c23dab61..df2cbcaf307 100644 --- a/crates/proc_macro_api/Cargo.toml +++ b/crates/proc-macro-api/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "proc_macro_api" +name = "proc-macro-api" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" @@ -28,4 +28,4 @@ tt = { path = "../tt", version = "0.0.0" } stdx = { path = "../stdx", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } # Intentionally *not* depend on anything salsa-related -# base_db = { path = "../base_db", version = "0.0.0" } +# base-db = { path = "../base-db", version = "0.0.0" } diff --git a/crates/proc_macro_api/src/lib.rs b/crates/proc-macro-api/src/lib.rs similarity index 100% rename from crates/proc_macro_api/src/lib.rs rename to crates/proc-macro-api/src/lib.rs diff --git a/crates/proc_macro_api/src/msg.rs b/crates/proc-macro-api/src/msg.rs similarity index 100% rename from crates/proc_macro_api/src/msg.rs rename to crates/proc-macro-api/src/msg.rs diff --git a/crates/proc_macro_api/src/msg/flat.rs b/crates/proc-macro-api/src/msg/flat.rs similarity index 100% rename from crates/proc_macro_api/src/msg/flat.rs rename to crates/proc-macro-api/src/msg/flat.rs diff --git a/crates/proc_macro_api/src/process.rs b/crates/proc-macro-api/src/process.rs similarity index 100% rename from crates/proc_macro_api/src/process.rs rename to crates/proc-macro-api/src/process.rs diff --git a/crates/proc_macro_api/src/version.rs b/crates/proc-macro-api/src/version.rs similarity index 100% rename from crates/proc_macro_api/src/version.rs rename to crates/proc-macro-api/src/version.rs diff --git a/crates/proc_macro_srv/Cargo.toml b/crates/proc-macro-srv/Cargo.toml similarity index 79% rename from crates/proc_macro_srv/Cargo.toml rename to crates/proc-macro-srv/Cargo.toml index 381d241b86a..01bc8878bb1 100644 --- a/crates/proc_macro_srv/Cargo.toml +++ b/crates/proc-macro-srv/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "proc_macro_srv" +name = "proc-macro-srv" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" @@ -23,10 +23,10 @@ memmap2 = "0.5.3" tt = { path = "../tt", version = "0.0.0" } mbe = { path = "../mbe", version = "0.0.0" } paths = { path = "../paths", version = "0.0.0" } -proc_macro_api = { path = "../proc_macro_api", version = "0.0.0" } +proc-macro-api = { path = "../proc-macro-api", version = "0.0.0" } [dev-dependencies] expect-test = "1.2.2" # used as proc macro test targets -proc_macro_test = { path = "../proc_macro_test" } +proc-macro-test = { path = "../proc-macro-test" } diff --git a/crates/proc_macro_srv/src/abis/abi_1_48/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_48/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_48/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_48/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/buffer.rs b/crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/buffer.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/buffer.rs rename to crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/buffer.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/client.rs b/crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/client.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/client.rs rename to crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/client.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/closure.rs b/crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/closure.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/closure.rs rename to crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/closure.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/handle.rs b/crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/handle.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/handle.rs rename to crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/handle.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/rpc.rs b/crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/rpc.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/rpc.rs rename to crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/rpc.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/scoped_cell.rs b/crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/scoped_cell.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/scoped_cell.rs rename to crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/scoped_cell.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/server.rs b/crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/server.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/bridge/server.rs rename to crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/bridge/server.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/diagnostic.rs b/crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/diagnostic.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/diagnostic.rs rename to crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/diagnostic.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_48/proc_macro/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_48/proc_macro/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_48/rustc_server.rs b/crates/proc-macro-srv/src/abis/abi_1_48/rustc_server.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_48/rustc_server.rs rename to crates/proc-macro-srv/src/abis/abi_1_48/rustc_server.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_54/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_54/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_54/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_54/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/buffer.rs b/crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/buffer.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/buffer.rs rename to crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/buffer.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/client.rs b/crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/client.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/client.rs rename to crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/client.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/closure.rs b/crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/closure.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/closure.rs rename to crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/closure.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/handle.rs b/crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/handle.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/handle.rs rename to crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/handle.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/rpc.rs b/crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/rpc.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/rpc.rs rename to crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/rpc.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/scoped_cell.rs b/crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/scoped_cell.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/scoped_cell.rs rename to crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/scoped_cell.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/server.rs b/crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/server.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/bridge/server.rs rename to crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/bridge/server.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/diagnostic.rs b/crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/diagnostic.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/diagnostic.rs rename to crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/diagnostic.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_54/proc_macro/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_54/proc_macro/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_54/rustc_server.rs b/crates/proc-macro-srv/src/abis/abi_1_54/rustc_server.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_54/rustc_server.rs rename to crates/proc-macro-srv/src/abis/abi_1_54/rustc_server.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_56/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/buffer.rs b/crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/buffer.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/buffer.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/buffer.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/client.rs b/crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/client.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/client.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/client.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/closure.rs b/crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/closure.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/closure.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/closure.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/handle.rs b/crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/handle.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/handle.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/handle.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/rpc.rs b/crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/rpc.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/rpc.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/rpc.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/scoped_cell.rs b/crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/scoped_cell.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/scoped_cell.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/scoped_cell.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/server.rs b/crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/server.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/bridge/server.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/bridge/server.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/diagnostic.rs b/crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/diagnostic.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/diagnostic.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/diagnostic.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/quote.rs b/crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/quote.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/proc_macro/quote.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/proc_macro/quote.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/rustc_server.rs b/crates/proc-macro-srv/src/abis/abi_1_56/rustc_server.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_56/rustc_server.rs rename to crates/proc-macro-srv/src/abis/abi_1_56/rustc_server.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_57/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/buffer.rs b/crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/buffer.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/buffer.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/buffer.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/client.rs b/crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/client.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/client.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/client.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/closure.rs b/crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/closure.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/closure.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/closure.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/handle.rs b/crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/handle.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/handle.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/handle.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/rpc.rs b/crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/rpc.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/rpc.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/rpc.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/scoped_cell.rs b/crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/scoped_cell.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/scoped_cell.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/scoped_cell.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/server.rs b/crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/server.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/bridge/server.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/bridge/server.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/diagnostic.rs b/crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/diagnostic.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/diagnostic.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/diagnostic.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/quote.rs b/crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/quote.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/proc_macro/quote.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/proc_macro/quote.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_57/rustc_server.rs b/crates/proc-macro-srv/src/abis/abi_1_57/rustc_server.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_57/rustc_server.rs rename to crates/proc-macro-srv/src/abis/abi_1_57/rustc_server.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_58/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/buffer.rs b/crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/buffer.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/buffer.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/buffer.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/client.rs b/crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/client.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/client.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/client.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/closure.rs b/crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/closure.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/closure.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/closure.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/handle.rs b/crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/handle.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/handle.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/handle.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/rpc.rs b/crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/rpc.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/rpc.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/rpc.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/scoped_cell.rs b/crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/scoped_cell.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/scoped_cell.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/scoped_cell.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/server.rs b/crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/server.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/bridge/server.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/bridge/server.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/diagnostic.rs b/crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/diagnostic.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/diagnostic.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/diagnostic.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/mod.rs b/crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/mod.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/mod.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/quote.rs b/crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/quote.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/proc_macro/quote.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/proc_macro/quote.rs diff --git a/crates/proc_macro_srv/src/abis/abi_1_58/rustc_server.rs b/crates/proc-macro-srv/src/abis/abi_1_58/rustc_server.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/abi_1_58/rustc_server.rs rename to crates/proc-macro-srv/src/abis/abi_1_58/rustc_server.rs diff --git a/crates/proc_macro_srv/src/abis/mod.rs b/crates/proc-macro-srv/src/abis/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/abis/mod.rs rename to crates/proc-macro-srv/src/abis/mod.rs diff --git a/crates/proc_macro_srv/src/cli.rs b/crates/proc-macro-srv/src/cli.rs similarity index 100% rename from crates/proc_macro_srv/src/cli.rs rename to crates/proc-macro-srv/src/cli.rs diff --git a/crates/proc_macro_srv/src/dylib.rs b/crates/proc-macro-srv/src/dylib.rs similarity index 100% rename from crates/proc_macro_srv/src/dylib.rs rename to crates/proc-macro-srv/src/dylib.rs diff --git a/crates/proc_macro_srv/src/lib.rs b/crates/proc-macro-srv/src/lib.rs similarity index 100% rename from crates/proc_macro_srv/src/lib.rs rename to crates/proc-macro-srv/src/lib.rs diff --git a/crates/proc_macro_srv/src/tests/mod.rs b/crates/proc-macro-srv/src/tests/mod.rs similarity index 100% rename from crates/proc_macro_srv/src/tests/mod.rs rename to crates/proc-macro-srv/src/tests/mod.rs diff --git a/crates/proc_macro_srv/src/tests/utils.rs b/crates/proc-macro-srv/src/tests/utils.rs similarity index 100% rename from crates/proc_macro_srv/src/tests/utils.rs rename to crates/proc-macro-srv/src/tests/utils.rs diff --git a/crates/proc-macro-test/.build.rs.swp b/crates/proc-macro-test/.build.rs.swp new file mode 100644 index 00000000000..e9252a02f52 Binary files /dev/null and b/crates/proc-macro-test/.build.rs.swp differ diff --git a/crates/proc_macro_test/Cargo.toml b/crates/proc-macro-test/Cargo.toml similarity index 74% rename from crates/proc_macro_test/Cargo.toml rename to crates/proc-macro-test/Cargo.toml index d0ddbd6d592..872b2a99d84 100644 --- a/crates/proc_macro_test/Cargo.toml +++ b/crates/proc-macro-test/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "proc_macro_test" +name = "proc-macro-test" version = "0.0.0" license = "MIT OR Apache-2.0" edition = "2021" @@ -10,6 +10,6 @@ publish = false doctest = false [build-dependencies] -proc_macro_test_impl = { path = "imp", version = "0.0.0" } +proc-macro-test-impl = { path = "imp", version = "0.0.0" } toolchain = { path = "../toolchain", version = "0.0.0" } cargo_metadata = "0.14.2" diff --git a/crates/proc_macro_test/build.rs b/crates/proc-macro-test/build.rs similarity index 87% rename from crates/proc_macro_test/build.rs rename to crates/proc-macro-test/build.rs index 1e7aa026fa5..767a790437e 100644 --- a/crates/proc_macro_test/build.rs +++ b/crates/proc-macro-test/build.rs @@ -1,7 +1,7 @@ //! This will build the proc macro in `imp`, and copy the resulting dylib artifact into the //! `OUT_DIR`. //! -//! `proc_macro_test` itself contains only a path to that artifact. +//! `proc-macro-test` itself contains only a path to that artifact. use std::{ env, fs, @@ -15,12 +15,12 @@ fn main() { let out_dir = env::var_os("OUT_DIR").unwrap(); let out_dir = Path::new(&out_dir); - let name = "proc_macro_test_impl"; + let name = "proc-macro-test-impl"; let version = "0.0.0"; let target_dir = out_dir.join("target"); let output = Command::new(toolchain::cargo()) .current_dir("imp") - .args(&["build", "-p", "proc_macro_test_impl", "--message-format", "json"]) + .args(&["build", "-p", "proc-macro-test-impl", "--message-format", "json"]) // Explicit override the target directory to avoid using the same one which the parent // cargo is using, or we'll deadlock. // This can happen when `CARGO_TARGET_DIR` is set or global config forces all cargo @@ -47,7 +47,7 @@ fn main() { } // This file is under `target_dir` and is already under `OUT_DIR`. - let artifact_path = artifact_path.expect("no dylib for proc_macro_test_impl found"); + let artifact_path = artifact_path.expect("no dylib for proc-macro-test-impl found"); let info_path = out_dir.join("proc_macro_test_location.txt"); fs::write(info_path, artifact_path.to_str().unwrap()).unwrap(); diff --git a/crates/proc_macro_test/imp/.gitignore b/crates/proc-macro-test/imp/.gitignore similarity index 100% rename from crates/proc_macro_test/imp/.gitignore rename to crates/proc-macro-test/imp/.gitignore diff --git a/crates/proc_macro_test/imp/Cargo.toml b/crates/proc-macro-test/imp/Cargo.toml similarity index 90% rename from crates/proc_macro_test/imp/Cargo.toml rename to crates/proc-macro-test/imp/Cargo.toml index dfb71ce57d3..2d1fc3c5c7a 100644 --- a/crates/proc_macro_test/imp/Cargo.toml +++ b/crates/proc-macro-test/imp/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "proc_macro_test_impl" +name = "proc-macro-test-impl" version = "0.0.0" license = "MIT OR Apache-2.0" edition = "2021" diff --git a/crates/proc_macro_test/imp/src/lib.rs b/crates/proc-macro-test/imp/src/lib.rs similarity index 100% rename from crates/proc_macro_test/imp/src/lib.rs rename to crates/proc-macro-test/imp/src/lib.rs diff --git a/crates/proc_macro_test/src/lib.rs b/crates/proc-macro-test/src/lib.rs similarity index 100% rename from crates/proc_macro_test/src/lib.rs rename to crates/proc-macro-test/src/lib.rs diff --git a/crates/project_model/Cargo.toml b/crates/project-model/Cargo.toml similarity index 89% rename from crates/project_model/Cargo.toml rename to crates/project-model/Cargo.toml index abb21586dae..8fafdb18506 100644 --- a/crates/project_model/Cargo.toml +++ b/crates/project-model/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "project_model" +name = "project-model" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" @@ -21,7 +21,7 @@ expect-test = "1.2.2" la-arena = { version = "0.3.0", path = "../../lib/arena" } cfg = { path = "../cfg", version = "0.0.0" } -base_db = { path = "../base_db", version = "0.0.0" } +base-db = { path = "../base-db", version = "0.0.0" } toolchain = { path = "../toolchain", version = "0.0.0" } paths = { path = "../paths", version = "0.0.0" } stdx = { path = "../stdx", version = "0.0.0" } diff --git a/crates/project_model/src/build_scripts.rs b/crates/project-model/src/build_scripts.rs similarity index 100% rename from crates/project_model/src/build_scripts.rs rename to crates/project-model/src/build_scripts.rs diff --git a/crates/project_model/src/cargo_workspace.rs b/crates/project-model/src/cargo_workspace.rs similarity index 100% rename from crates/project_model/src/cargo_workspace.rs rename to crates/project-model/src/cargo_workspace.rs diff --git a/crates/project_model/src/cfg_flag.rs b/crates/project-model/src/cfg_flag.rs similarity index 100% rename from crates/project_model/src/cfg_flag.rs rename to crates/project-model/src/cfg_flag.rs diff --git a/crates/project_model/src/lib.rs b/crates/project-model/src/lib.rs similarity index 100% rename from crates/project_model/src/lib.rs rename to crates/project-model/src/lib.rs diff --git a/crates/project_model/src/manifest_path.rs b/crates/project-model/src/manifest_path.rs similarity index 100% rename from crates/project_model/src/manifest_path.rs rename to crates/project-model/src/manifest_path.rs diff --git a/crates/project_model/src/project_json.rs b/crates/project-model/src/project_json.rs similarity index 100% rename from crates/project_model/src/project_json.rs rename to crates/project-model/src/project_json.rs diff --git a/crates/project_model/src/rustc_cfg.rs b/crates/project-model/src/rustc_cfg.rs similarity index 100% rename from crates/project_model/src/rustc_cfg.rs rename to crates/project-model/src/rustc_cfg.rs diff --git a/crates/project_model/src/sysroot.rs b/crates/project-model/src/sysroot.rs similarity index 100% rename from crates/project_model/src/sysroot.rs rename to crates/project-model/src/sysroot.rs diff --git a/crates/project_model/src/tests.rs b/crates/project-model/src/tests.rs similarity index 100% rename from crates/project_model/src/tests.rs rename to crates/project-model/src/tests.rs diff --git a/crates/project_model/src/workspace.rs b/crates/project-model/src/workspace.rs similarity index 100% rename from crates/project_model/src/workspace.rs rename to crates/project-model/src/workspace.rs diff --git a/crates/project_model/test_data/fake-sysroot/alloc/src/lib.rs b/crates/project-model/test_data/fake-sysroot/alloc/src/lib.rs similarity index 100% rename from crates/project_model/test_data/fake-sysroot/alloc/src/lib.rs rename to crates/project-model/test_data/fake-sysroot/alloc/src/lib.rs diff --git a/crates/project_model/test_data/fake-sysroot/core/src/lib.rs b/crates/project-model/test_data/fake-sysroot/core/src/lib.rs similarity index 100% rename from crates/project_model/test_data/fake-sysroot/core/src/lib.rs rename to crates/project-model/test_data/fake-sysroot/core/src/lib.rs diff --git a/crates/project_model/test_data/fake-sysroot/panic_abort/src/lib.rs b/crates/project-model/test_data/fake-sysroot/panic_abort/src/lib.rs similarity index 100% rename from crates/project_model/test_data/fake-sysroot/panic_abort/src/lib.rs rename to crates/project-model/test_data/fake-sysroot/panic_abort/src/lib.rs diff --git a/crates/project_model/test_data/fake-sysroot/panic_unwind/src/lib.rs b/crates/project-model/test_data/fake-sysroot/panic_unwind/src/lib.rs similarity index 100% rename from crates/project_model/test_data/fake-sysroot/panic_unwind/src/lib.rs rename to crates/project-model/test_data/fake-sysroot/panic_unwind/src/lib.rs diff --git a/crates/project_model/test_data/fake-sysroot/proc_macro/src/lib.rs b/crates/project-model/test_data/fake-sysroot/proc_macro/src/lib.rs similarity index 100% rename from crates/project_model/test_data/fake-sysroot/proc_macro/src/lib.rs rename to crates/project-model/test_data/fake-sysroot/proc_macro/src/lib.rs diff --git a/crates/project_model/test_data/fake-sysroot/profiler_builtins/src/lib.rs b/crates/project-model/test_data/fake-sysroot/profiler_builtins/src/lib.rs similarity index 100% rename from crates/project_model/test_data/fake-sysroot/profiler_builtins/src/lib.rs rename to crates/project-model/test_data/fake-sysroot/profiler_builtins/src/lib.rs diff --git a/crates/project_model/test_data/fake-sysroot/std/src/lib.rs b/crates/project-model/test_data/fake-sysroot/std/src/lib.rs similarity index 100% rename from crates/project_model/test_data/fake-sysroot/std/src/lib.rs rename to crates/project-model/test_data/fake-sysroot/std/src/lib.rs diff --git a/crates/project_model/test_data/fake-sysroot/stdarch/crates/std_detect/src/lib.rs b/crates/project-model/test_data/fake-sysroot/stdarch/crates/std_detect/src/lib.rs similarity index 100% rename from crates/project_model/test_data/fake-sysroot/stdarch/crates/std_detect/src/lib.rs rename to crates/project-model/test_data/fake-sysroot/stdarch/crates/std_detect/src/lib.rs diff --git a/crates/project_model/test_data/fake-sysroot/term/src/lib.rs b/crates/project-model/test_data/fake-sysroot/term/src/lib.rs similarity index 100% rename from crates/project_model/test_data/fake-sysroot/term/src/lib.rs rename to crates/project-model/test_data/fake-sysroot/term/src/lib.rs diff --git a/crates/project_model/test_data/fake-sysroot/test/src/lib.rs b/crates/project-model/test_data/fake-sysroot/test/src/lib.rs similarity index 100% rename from crates/project_model/test_data/fake-sysroot/test/src/lib.rs rename to crates/project-model/test_data/fake-sysroot/test/src/lib.rs diff --git a/crates/project_model/test_data/fake-sysroot/unwind/src/lib.rs b/crates/project-model/test_data/fake-sysroot/unwind/src/lib.rs similarity index 100% rename from crates/project_model/test_data/fake-sysroot/unwind/src/lib.rs rename to crates/project-model/test_data/fake-sysroot/unwind/src/lib.rs diff --git a/crates/project_model/test_data/hello-world-metadata.json b/crates/project-model/test_data/hello-world-metadata.json similarity index 100% rename from crates/project_model/test_data/hello-world-metadata.json rename to crates/project-model/test_data/hello-world-metadata.json diff --git a/crates/project_model/test_data/hello-world-project.json b/crates/project-model/test_data/hello-world-project.json similarity index 100% rename from crates/project_model/test_data/hello-world-project.json rename to crates/project-model/test_data/hello-world-project.json diff --git a/crates/project_model/test_data/is-proc-macro-project.json b/crates/project-model/test_data/is-proc-macro-project.json similarity index 100% rename from crates/project_model/test_data/is-proc-macro-project.json rename to crates/project-model/test_data/is-proc-macro-project.json diff --git a/crates/rust-analyzer/Cargo.toml b/crates/rust-analyzer/Cargo.toml index 2fafd44b1f0..767f59e61cb 100644 --- a/crates/rust-analyzer/Cargo.toml +++ b/crates/rust-analyzer/Cargo.toml @@ -48,23 +48,23 @@ always-assert = "0.1.2" stdx = { path = "../stdx", version = "0.0.0" } flycheck = { path = "../flycheck", version = "0.0.0" } ide = { path = "../ide", version = "0.0.0" } -ide_db = { path = "../ide_db", version = "0.0.0" } +ide-db = { path = "../ide-db", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } -project_model = { path = "../project_model", version = "0.0.0" } +project-model = { path = "../project-model", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } vfs = { path = "../vfs", version = "0.0.0" } vfs-notify = { path = "../vfs-notify", version = "0.0.0" } cfg = { path = "../cfg", version = "0.0.0" } toolchain = { path = "../toolchain", version = "0.0.0" } tt = { path = "../tt", version = "0.0.0" } -proc_macro_api = { path = "../proc_macro_api", version = "0.0.0" } +proc-macro-api = { path = "../proc-macro-api", version = "0.0.0" } # This should only be used in CLI -ide_ssr = { path = "../ide_ssr", version = "0.0.0" } +ide-ssr = { path = "../ide-ssr", version = "0.0.0" } hir = { path = "../hir", version = "0.0.0" } -hir_def = { path = "../hir_def", version = "0.0.0" } -hir_ty = { path = "../hir_ty", version = "0.0.0" } -proc_macro_srv = { path = "../proc_macro_srv", version = "0.0.0" } +hir-def = { path = "../hir-def", version = "0.0.0" } +hir-ty = { path = "../hir-ty", version = "0.0.0" } +proc-macro-srv = { path = "../proc-macro-srv", version = "0.0.0" } [target.'cfg(windows)'.dependencies] winapi = "0.3.9" @@ -77,7 +77,7 @@ expect-test = "1.2.2" jod-thread = "0.1.2" xshell = "0.2.1" -test_utils = { path = "../test_utils" } +test-utils = { path = "../test-utils" } sourcegen = { path = "../sourcegen" } mbe = { path = "../mbe" } diff --git a/crates/syntax/Cargo.toml b/crates/syntax/Cargo.toml index 99bc30f0763..127eaa519bf 100644 --- a/crates/syntax/Cargo.toml +++ b/crates/syntax/Cargo.toml @@ -21,7 +21,7 @@ indexmap = "1.8.0" smol_str = "0.1.21" stdx = { path = "../stdx", version = "0.0.0" } -text_edit = { path = "../text_edit", version = "0.0.0" } +text-edit = { path = "../text-edit", version = "0.0.0" } parser = { path = "../parser", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } @@ -32,5 +32,5 @@ proc-macro2 = "1.0.36" quote = "1.0.16" ungrammar = "1.16.1" -test_utils = { path = "../test_utils" } +test-utils = { path = "../test-utils" } sourcegen = { path = "../sourcegen" } diff --git a/crates/test_utils/Cargo.toml b/crates/test-utils/Cargo.toml similarity index 95% rename from crates/test_utils/Cargo.toml rename to crates/test-utils/Cargo.toml index e8a8ef04b4b..f542af1659b 100644 --- a/crates/test_utils/Cargo.toml +++ b/crates/test-utils/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "test_utils" +name = "test-utils" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" diff --git a/crates/test_utils/src/assert_linear.rs b/crates/test-utils/src/assert_linear.rs similarity index 100% rename from crates/test_utils/src/assert_linear.rs rename to crates/test-utils/src/assert_linear.rs diff --git a/crates/test_utils/src/bench_fixture.rs b/crates/test-utils/src/bench_fixture.rs similarity index 100% rename from crates/test_utils/src/bench_fixture.rs rename to crates/test-utils/src/bench_fixture.rs diff --git a/crates/test_utils/src/fixture.rs b/crates/test-utils/src/fixture.rs similarity index 100% rename from crates/test_utils/src/fixture.rs rename to crates/test-utils/src/fixture.rs diff --git a/crates/test_utils/src/lib.rs b/crates/test-utils/src/lib.rs similarity index 100% rename from crates/test_utils/src/lib.rs rename to crates/test-utils/src/lib.rs diff --git a/crates/test_utils/src/minicore.rs b/crates/test-utils/src/minicore.rs similarity index 100% rename from crates/test_utils/src/minicore.rs rename to crates/test-utils/src/minicore.rs diff --git a/crates/text_edit/Cargo.toml b/crates/text-edit/Cargo.toml similarity index 91% rename from crates/text_edit/Cargo.toml rename to crates/text-edit/Cargo.toml index fde19f1363c..cf14bbd3c3e 100644 --- a/crates/text_edit/Cargo.toml +++ b/crates/text-edit/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "text_edit" +name = "text-edit" version = "0.0.0" description = "TBD" license = "MIT OR Apache-2.0" diff --git a/crates/text_edit/src/lib.rs b/crates/text-edit/src/lib.rs similarity index 100% rename from crates/text_edit/src/lib.rs rename to crates/text-edit/src/lib.rs