From f0cbc1b51c405a4e2a4ec39b05e193f5d298e1b6 Mon Sep 17 00:00:00 2001 From: WildCat Date: Sat, 8 Jan 2022 14:15:24 +0800 Subject: [PATCH] Inital commit --- .gitignore | 66 +++++++++++++++++++++++++++++++++++++ LICENSE | 21 ++++++++++++ todo_list_shared/.gitignore | 14 ++++++++ todo_list_shared/Cargo.toml | 9 +++++ todo_list_shared/README.md | 3 ++ todo_list_shared/src/lib.rs | 8 +++++ 6 files changed, 121 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 todo_list_shared/.gitignore create mode 100644 todo_list_shared/Cargo.toml create mode 100644 todo_list_shared/README.md create mode 100644 todo_list_shared/src/lib.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..65ae23c --- /dev/null +++ b/.gitignore @@ -0,0 +1,66 @@ +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a25a571 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Daohan Chong + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/todo_list_shared/.gitignore b/todo_list_shared/.gitignore new file mode 100644 index 0000000..6985cf1 --- /dev/null +++ b/todo_list_shared/.gitignore @@ -0,0 +1,14 @@ +# 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 diff --git a/todo_list_shared/Cargo.toml b/todo_list_shared/Cargo.toml new file mode 100644 index 0000000..31a7873 --- /dev/null +++ b/todo_list_shared/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "todo_list_shared" +version = "0.1.0" +edition = "2021" +author = "Daohan Chong " + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/todo_list_shared/README.md b/todo_list_shared/README.md new file mode 100644 index 0000000..db196c2 --- /dev/null +++ b/todo_list_shared/README.md @@ -0,0 +1,3 @@ +# Todo List Shared + +A shared library for the todo list application, which can be used for Android, iOS and other platforms. diff --git a/todo_list_shared/src/lib.rs b/todo_list_shared/src/lib.rs new file mode 100644 index 0000000..1b4a90c --- /dev/null +++ b/todo_list_shared/src/lib.rs @@ -0,0 +1,8 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + let result = 2 + 2; + assert_eq!(result, 4); + } +}