init common library

This commit is contained in:
daniel.w 2024-06-16 09:38:23 +08:00
commit 41089b821e
4 changed files with 29 additions and 0 deletions

16
.gitignore vendored Normal file
View File

@ -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/

6
Cargo.toml Normal file
View File

@ -0,0 +1,6 @@
[package]
name = "library-rust"
version = "0.1.0"
edition = "2021"
[dependencies]

4
readme.md Normal file
View File

@ -0,0 +1,4 @@
Rust Library
================

3
src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}