aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_cli/Cargo.toml1
-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
15ra_syntax = { path = "../ra_syntax" } 15ra_syntax = { path = "../ra_syntax" }
16ra_ide_api = { path = "../ra_ide_api" } 16ra_ide_api = { path = "../ra_ide_api" }
17tools = { path = "../tools" }
18ra_batch = { path = "../ra_batch" } 17ra_batch = { path = "../ra_batch" }
19ra_hir = { path = "../ra_hir" } 18ra_hir = { path = "../ra_hir" }
20ra_db = { path = "../ra_db" } 19ra_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]
2edition = "2018" 2edition = "2018"
3name = "tools" 3name = "ra_tools"
4version = "0.1.0" 4version = "0.1.0"
5authors = ["rust-analyzer developers"] 5authors = ["rust-analyzer developers"]
6publish = false 6publish = 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
3use failure::bail; 3use failure::bail;
4 4
5use tools::{Result, run_rustfmt, run, project_root}; 5use ra_tools::{Result, run_rustfmt, run, project_root, Overwrite};
6 6
7fn main() -> tools::Result<()> { 7fn 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 @@
1use clap::{App, SubCommand}; 1use clap::{App, SubCommand};
2use core::str; 2use core::str;
3use failure::bail; 3use failure::bail;
4use tools::{ 4use 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 @@
1use walkdir::WalkDir; 1use walkdir::WalkDir;
2 2
3use tools::{generate, gen_tests, run_rustfmt, Verify, project_root}; 3use ra_tools::{generate, gen_tests, run_rustfmt, Verify, project_root};
4 4
5#[test] 5#[test]
6fn generated_grammar_is_fresh() { 6fn generated_grammar_is_fresh() {