From 589838ee40690b24d098b1006db3e126fe762515 Mon Sep 17 00:00:00 2001 From: rhysd Date: Wed, 8 Jun 2022 20:51:37 +0900 Subject: [PATCH] setup rustfmt --- .gitignore | 2 ++ .rustfmt.toml | 1 + Cargo.toml | 8 ++++++++ src/lib.rs | 8 ++++++++ 4 files changed, 19 insertions(+) create mode 100644 .gitignore create mode 100644 .rustfmt.toml create mode 100644 Cargo.toml create mode 100644 src/lib.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4fffb2f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/target +/Cargo.lock diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..3a26366 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1 @@ +edition = "2021" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..852e36a --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "tui-textarea" +version = "0.0.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..1b4a90c --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,8 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + let result = 2 + 2; + assert_eq!(result, 4); + } +}