diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_cli/Cargo.toml | 1 | ||||
-rw-r--r-- | crates/ra_tools/Cargo.toml (renamed from crates/tools/Cargo.toml) | 2 | ||||
-rw-r--r-- | crates/ra_tools/src/bin/pre-commit.rs (renamed from crates/tools/src/bin/pre-commit.rs) | 6 | ||||
-rw-r--r-- | crates/ra_tools/src/lib.rs (renamed from crates/tools/src/lib.rs) | 2 | ||||
-rw-r--r-- | crates/ra_tools/src/main.rs (renamed from crates/tools/src/main.rs) | 2 | ||||
-rw-r--r-- | crates/ra_tools/tests/cli.rs (renamed from crates/tools/tests/cli.rs) | 2 |
6 files changed, 7 insertions, 8 deletions
diff --git a/crates/ra_cli/Cargo.toml b/crates/ra_cli/Cargo.toml index 328b2436f..3117f4fda 100644 --- a/crates/ra_cli/Cargo.toml +++ b/crates/ra_cli/Cargo.toml | |||
@@ -14,7 +14,6 @@ indicatif = "0.11.0" | |||
14 | 14 | ||
15 | ra_syntax = { path = "../ra_syntax" } | 15 | ra_syntax = { path = "../ra_syntax" } |
16 | ra_ide_api = { path = "../ra_ide_api" } | 16 | ra_ide_api = { path = "../ra_ide_api" } |
17 | tools = { path = "../tools" } | ||
18 | ra_batch = { path = "../ra_batch" } | 17 | ra_batch = { path = "../ra_batch" } |
19 | ra_hir = { path = "../ra_hir" } | 18 | ra_hir = { path = "../ra_hir" } |
20 | ra_db = { path = "../ra_db" } | 19 | ra_db = { path = "../ra_db" } |
diff --git a/crates/tools/Cargo.toml b/crates/ra_tools/Cargo.toml index f03256a74..35ea3231b 100644 --- a/crates/tools/Cargo.toml +++ b/crates/ra_tools/Cargo.toml | |||
@@ -1,6 +1,6 @@ | |||
1 | [package] | 1 | [package] |
2 | edition = "2018" | 2 | edition = "2018" |
3 | name = "tools" | 3 | name = "ra_tools" |
4 | version = "0.1.0" | 4 | version = "0.1.0" |
5 | authors = ["rust-analyzer developers"] | 5 | authors = ["rust-analyzer developers"] |
6 | publish = false | 6 | publish = false |
diff --git a/crates/tools/src/bin/pre-commit.rs b/crates/ra_tools/src/bin/pre-commit.rs index ea18c0863..c514e992b 100644 --- a/crates/tools/src/bin/pre-commit.rs +++ b/crates/ra_tools/src/bin/pre-commit.rs | |||
@@ -2,10 +2,10 @@ use std::process::Command; | |||
2 | 2 | ||
3 | use failure::bail; | 3 | use failure::bail; |
4 | 4 | ||
5 | use tools::{Result, run_rustfmt, run, project_root}; | 5 | use ra_tools::{Result, run_rustfmt, run, project_root, Overwrite}; |
6 | 6 | ||
7 | fn main() -> tools::Result<()> { | 7 | fn main() -> Result<()> { |
8 | run_rustfmt(tools::Overwrite)?; | 8 | run_rustfmt(Overwrite)?; |
9 | update_staged() | 9 | update_staged() |
10 | } | 10 | } |
11 | 11 | ||
diff --git a/crates/tools/src/lib.rs b/crates/ra_tools/src/lib.rs index 2446fdf28..61f6b08cd 100644 --- a/crates/tools/src/lib.rs +++ b/crates/ra_tools/src/lib.rs | |||
@@ -121,7 +121,7 @@ pub fn install_format_hook() -> Result<()> { | |||
121 | "./.git/hooks/pre-commit" | 121 | "./.git/hooks/pre-commit" |
122 | }); | 122 | }); |
123 | if !result_path.exists() { | 123 | if !result_path.exists() { |
124 | run("cargo build --package tools --bin pre-commit", ".")?; | 124 | run("cargo build --package ra_tools --bin pre-commit", ".")?; |
125 | if cfg!(windows) { | 125 | if cfg!(windows) { |
126 | fs::copy("./target/debug/pre-commit.exe", result_path)?; | 126 | fs::copy("./target/debug/pre-commit.exe", result_path)?; |
127 | } else { | 127 | } else { |
diff --git a/crates/tools/src/main.rs b/crates/ra_tools/src/main.rs index 8027ff833..285071ea5 100644 --- a/crates/tools/src/main.rs +++ b/crates/ra_tools/src/main.rs | |||
@@ -1,7 +1,7 @@ | |||
1 | use clap::{App, SubCommand}; | 1 | use clap::{App, SubCommand}; |
2 | use core::str; | 2 | use core::str; |
3 | use failure::bail; | 3 | use failure::bail; |
4 | use tools::{ | 4 | use ra_tools::{ |
5 | generate, gen_tests, install_format_hook, run, run_with_output, run_rustfmt, | 5 | generate, gen_tests, install_format_hook, run, run_with_output, run_rustfmt, |
6 | Overwrite, Result, run_fuzzer, run_clippy, | 6 | Overwrite, Result, run_fuzzer, run_clippy, |
7 | }; | 7 | }; |
diff --git a/crates/tools/tests/cli.rs b/crates/ra_tools/tests/cli.rs index 6f82ae61d..83640218f 100644 --- a/crates/tools/tests/cli.rs +++ b/crates/ra_tools/tests/cli.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | use walkdir::WalkDir; | 1 | use walkdir::WalkDir; |
2 | 2 | ||
3 | use tools::{generate, gen_tests, run_rustfmt, Verify, project_root}; | 3 | use ra_tools::{generate, gen_tests, run_rustfmt, Verify, project_root}; |
4 | 4 | ||
5 | #[test] | 5 | #[test] |
6 | fn generated_grammar_is_fresh() { | 6 | fn generated_grammar_is_fresh() { |