From 41089b821e542632de6d63e7bf7f9c84a401c730 Mon Sep 17 00:00:00 2001 From: "daniel.w" Date: Sun, 16 Jun 2024 09:38:23 +0800 Subject: [PATCH] init common library --- .gitignore | 16 ++++++++++++++++ Cargo.toml | 6 ++++++ readme.md | 4 ++++ src/main.rs | 3 +++ 4 files changed, 29 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.toml create mode 100644 readme.md create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b41713 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +# ---> Rust +# Generated by Cargo +# will have compiled files and executables +debug/ +target/ + +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +Cargo.lock + +# These are backup files generated by rustfmt +**/*.rs.bk + +# MSVC Windows builds of rustc generate these, which store debugging information +*.pdb +.idea/ \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..38d1955 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "library-rust" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..825ed57 --- /dev/null +++ b/readme.md @@ -0,0 +1,4 @@ +Rust Library +================ + + diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}