From 40105aaccd9b8a1a1b8d0e89368ba830ccba3dcc Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 24 Jan 2023 18:52:44 +0100 Subject: [PATCH] Initial Rust setup --- .gitignore | 3 +-- Cargo.lock | 7 +++++++ Cargo.toml | 9 +++++++++ rustfmt.toml | 1 + src/main.rs | 3 +++ 5 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 rustfmt.toml create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore index a8d69d5..73d8961 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ /viewer/data /resource/data /resource/colors.json -.idea/ -cmake-build-debug/ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..418de4f --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "minedmap" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..d981c31 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "minedmap" +version = "0.1.0" +edition = "2021" +license = "BSD-2-Clause" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..218e203 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +hard_tabs = true 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!"); +}