From e03672a6ea819358a02415826b968ac5589336de Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Mon, 3 Jul 2023 14:23:57 +0300 Subject: [PATCH] Init --- .gitignore | 1 + .rustfmt.toml | 11 +++++++++++ Cargo.toml | 8 ++++++++ src/main.rs | 3 +++ tea.yaml | 3 +++ 5 files changed, 26 insertions(+) create mode 100644 .gitignore create mode 100644 .rustfmt.toml create mode 100644 Cargo.toml create mode 100644 src/main.rs create mode 100644 tea.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..c3d94b0 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,11 @@ +edition = "2021" +hard_tabs = true +merge_derives = true +reorder_imports = true +reorder_modules = true +use_field_init_shorthand = true +use_small_heuristics = "Off" + +# May need nightly rustfmt +wrap_comments = true +comment_width = 80 diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..957200b --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "rust-template" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..a30eb95 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/tea.yaml b/tea.yaml new file mode 100644 index 0000000..3ec75d3 --- /dev/null +++ b/tea.yaml @@ -0,0 +1,3 @@ +dependencies: + rust-lang.org: '>=1.70' + rust-lang.org/cargo: '*'