commit e7f18237a44267d843f73d81960381919602f585 Author: Joey Hines Date: Mon Nov 23 15:32:03 2020 -0600 Initial commit diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8deb767 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2020 Joey Hines + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..55746ce --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Rust Template + +A template for my Rust projects. Uses [tmpl](https://gitea.com/jolheiser/tmpl). + +## License + +[MIT](LICENSE) diff --git a/template.toml b/template.toml new file mode 100644 index 0000000..133b519 --- /dev/null +++ b/template.toml @@ -0,0 +1,8 @@ +# template.toml +# Write any template args here to prompt the user for, giving any defaults/options as applicable + +project_name = "project" +version = "0.1.0" +author = "Joey Hines" +author_email = "joey@ahines.net" + diff --git a/template/.gitignore b/template/.gitignore new file mode 100644 index 0000000..c403c34 --- /dev/null +++ b/template/.gitignore @@ -0,0 +1,2 @@ +/target +.idea/ diff --git a/template/Cargo.toml b/template/Cargo.toml new file mode 100644 index 0000000..74fa97e --- /dev/null +++ b/template/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "{{project_name}}" +version = "{{version}}" +authors = ["{{author}} <{{author_email}}>"] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/template/LICENSE b/template/LICENSE new file mode 100644 index 0000000..26db87c --- /dev/null +++ b/template/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2020 {{author}} + +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. diff --git a/template/README.md b/template/README.md new file mode 100644 index 0000000..795c6b6 --- /dev/null +++ b/template/README.md @@ -0,0 +1,4 @@ +# {{project_name}} + +# License +[MIT](LICENSE) diff --git a/template/src/main.rs b/template/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/template/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}