From d7c5d24c6a7fdd9df9f27e1370b393240a2226f4 Mon Sep 17 00:00:00 2001 From: msi Date: Wed, 12 Nov 2025 10:24:23 -0300 Subject: Init --- .github/workflows/auto_closer.yml | 18 ++++++++++++++++++ .gitignore | 1 + Cargo.toml | 2 ++ Justfile | 13 +++++++++++++ LICENSE | 13 +++++++++++++ README.md | 3 +++ cargo-generate.toml | 7 +++++++ web/README.md | 10 ++++++++++ web/template/.gitignore | 1 + web/template/Cargo.toml | 9 +++++++++ web/template/LICENSE | 13 +++++++++++++ web/template/README.md | 5 +++++ web/template/cargo-generate.toml | 5 +++++ web/template/src/main.rs | 3 +++ 14 files changed, 103 insertions(+) create mode 100644 .github/workflows/auto_closer.yml create mode 100644 .gitignore create mode 100644 Cargo.toml create mode 100644 Justfile create mode 100644 LICENSE create mode 100644 README.md create mode 100644 cargo-generate.toml create mode 100644 web/README.md create mode 100644 web/template/.gitignore create mode 100644 web/template/Cargo.toml create mode 100644 web/template/LICENSE create mode 100644 web/template/README.md create mode 100644 web/template/cargo-generate.toml create mode 100644 web/template/src/main.rs diff --git a/.github/workflows/auto_closer.yml b/.github/workflows/auto_closer.yml new file mode 100644 index 0000000..2d963e1 --- /dev/null +++ b/.github/workflows/auto_closer.yml @@ -0,0 +1,18 @@ +name: Autocloser + +on: [issues, pull_request] + +jobs: + autoclose: + runs-on: ubuntu-latest + steps: + - name: Autoclose issues/pr + uses: roots/issue-closer-action@v1.2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + # issue + issue-close-message: "@${issue.user.login} We do not accept issues. If you have any questions, please feel free to contact us." + issue-pattern: "*" + # pr + pr-close-message: "@${issue.user.login} We do not accept PRs. If you have any questions, please feel free to contact us." + pr-pattern: "*" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb5a316 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..efa9b27 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,2 @@ +[workspace] +members = ["*-generated", "web/template"] diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..1d5a4e3 --- /dev/null +++ b/Justfile @@ -0,0 +1,13 @@ +default: + @just --list + +generate-all: + just web + +web $CARGO_NAME="your name" $CARGO_EMAIL="author@example.com": + rm -rv web-generated + cargo generate --path ./component \ + --name web-generated \ + --define project-description="An example generated using the component template" \ + --define use-gitserver=false + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1d0d924 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2025 murilo ijanc' + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..78cbdea --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ijanc.org - templates + +* web diff --git a/cargo-generate.toml b/cargo-generate.toml new file mode 100644 index 0000000..58f9b7b --- /dev/null +++ b/cargo-generate.toml @@ -0,0 +1,7 @@ +# configuration for https://cargo-generate.github.io/cargo-generate/ + +[template] +cargo_generate_version = ">=0.23.0" +sub_templates = [ + "web", +] diff --git a/web/README.md b/web/README.md new file mode 100644 index 0000000..01cf846 --- /dev/null +++ b/web/README.md @@ -0,0 +1,10 @@ +# web template + +* Axum +* Graceful Shutdown +* Minijinja +* Prometheus +* Middleware Ip +* Config +* Tracing +* 404 diff --git a/web/template/.gitignore b/web/template/.gitignore new file mode 100644 index 0000000..2f7896d --- /dev/null +++ b/web/template/.gitignore @@ -0,0 +1 @@ +target/ diff --git a/web/template/Cargo.toml b/web/template/Cargo.toml new file mode 100644 index 0000000..75024cc --- /dev/null +++ b/web/template/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "{{project-name}}" +version = "0.1.0" +description = "{{project-description}}" +authors = ["{{authors}}"] +license = "ISC" +edition = "2024" + +[dependencies] diff --git a/web/template/LICENSE b/web/template/LICENSE new file mode 100644 index 0000000..1d0d924 --- /dev/null +++ b/web/template/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2025 murilo ijanc' + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/web/template/README.md b/web/template/README.md new file mode 100644 index 0000000..18f5a8d --- /dev/null +++ b/web/template/README.md @@ -0,0 +1,5 @@ +# {{project-name}} + +## License + +This project is licensed under the ISC license ([LICENSE](LICENSE) or http://opensource.org/licenses/ISC) diff --git a/web/template/cargo-generate.toml b/web/template/cargo-generate.toml new file mode 100644 index 0000000..ec598e7 --- /dev/null +++ b/web/template/cargo-generate.toml @@ -0,0 +1,5 @@ +[template] +cargo_generate_version = ">=0.23.0" + +[placeholders] +project-description = { type = "string", prompt = "Short description of the project", default = "An example generated using the simple template" } diff --git a/web/template/src/main.rs b/web/template/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/web/template/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} -- cgit v1.2.3