From d28d7fee89cf8d01f06dc8f450c1614fc830b948 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Wed, 7 Feb 2018 22:49:43 +0900 Subject: [PATCH] Create rustfmt-format-diff crate --- rustfmt-format-diff/Cargo.toml | 21 +++++++++++++++++++ .../src/main.rs | 0 .../src}/test/bindgen.diff | 0 3 files changed, 21 insertions(+) create mode 100644 rustfmt-format-diff/Cargo.toml rename src/bin/rustfmt-format-diff.rs => rustfmt-format-diff/src/main.rs (100%) rename {src/bin => rustfmt-format-diff/src}/test/bindgen.diff (100%) diff --git a/rustfmt-format-diff/Cargo.toml b/rustfmt-format-diff/Cargo.toml new file mode 100644 index 00000000000..a74c08616bd --- /dev/null +++ b/rustfmt-format-diff/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "rustfmt-format-diff" +version = "0.4.0" +authors = ["Nicholas Cameron ", "The Rustfmt developers"] +description = "Run rustfmt against diff" +repository = "https://github.com/rust-lang-nursery/rustfmt" +readme = "README.md" +license = "Apache-2.0/MIT" +categories = ["development-tools"] + +[[bin]] +name = "rustfmt-format-diff" + +[dependencies] +env_logger = "0.4" +getopts = "0.2" +log = "0.3" +regex = "0.2" +serde = "1.0" +serde_derive = "1.0" +serde_json = "1.0" \ No newline at end of file diff --git a/src/bin/rustfmt-format-diff.rs b/rustfmt-format-diff/src/main.rs similarity index 100% rename from src/bin/rustfmt-format-diff.rs rename to rustfmt-format-diff/src/main.rs diff --git a/src/bin/test/bindgen.diff b/rustfmt-format-diff/src/test/bindgen.diff similarity index 100% rename from src/bin/test/bindgen.diff rename to rustfmt-format-diff/src/test/bindgen.diff -- 2.44.0