From 916abba26b4046a993e5b4e97be4da2fdcf7fc93 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 7 Mar 2022 21:39:02 +0000 Subject: chore: licensing --- .gitignore | 12 +++--------- .license_template | 19 +++++++++++++++++-- rustfmt.toml | 2 +- src/constants.rs | 17 ++++++++++++++++- src/main.rs | 17 ++++++++++++++++- src/routes.rs | 17 ++++++++++++++++- src/structures.rs | 17 ++++++++++++++++- src/utils.rs | 17 ++++++++++++++++- 8 files changed, 101 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 9d30354..59a8c42 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,7 @@ -# Generated by Cargo -# will have compiled files and executables -/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 +# Rust +target/ Cargo.lock - -# These are backup files generated by rustfmt **/*.rs.bk -# ide +# IDE /.idea/ diff --git a/.license_template b/.license_template index 91139b6..0efa192 100644 --- a/.license_template +++ b/.license_template @@ -1,2 +1,17 @@ -// Copyright (C) {20\d{2}(-20\d{2})?} the senpy club -// SPDX-License-Identifier: GPL-3.0-only +// This file is part of api-worker . +// Copyright (C) {20\d{2}(-20\d{2})?} Fuwn +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 3. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// Copyright (C) {20\d{2}(-20\d{2})?} Fuwn +// SPDX-License-Identifier: GPL-3.0-only \ No newline at end of file diff --git a/rustfmt.toml b/rustfmt.toml index cdca26c..a1f79a9 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -9,7 +9,7 @@ format_code_in_doc_comments = true format_macro_matchers = true format_strings = true imports_layout = "HorizontalVertical" -# license_template_path = ".license_template" +license_template_path = ".license_template" match_arm_blocks = false imports_granularity = "Crate" newline_style = "Unix" diff --git a/src/constants.rs b/src/constants.rs index 8fd2f3b..003fdf1 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,4 +1,19 @@ -// Copyright (C) 2021-2021 the senpy club +// This file is part of api-worker . +// Copyright (C) 2022-2022 Fuwn +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 3. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// Copyright (C) 2022-2022 Fuwn // SPDX-License-Identifier: GPL-3.0-only pub const GITHUB_USER_CONTENT: &str = diff --git a/src/main.rs b/src/main.rs index d0daf04..53481e0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,19 @@ -// Copyright (C) 2021-2021 the senpy club +// This file is part of api-worker . +// Copyright (C) 2022-2022 Fuwn +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 3. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// Copyright (C) 2022-2022 Fuwn // SPDX-License-Identifier: GPL-3.0-only #![feature(type_ascription)] diff --git a/src/routes.rs b/src/routes.rs index 2d67234..d34489d 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -1,4 +1,19 @@ -// Copyright (C) 2021-2021 the senpy club +// This file is part of api-worker . +// Copyright (C) 2022-2022 Fuwn +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 3. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// Copyright (C) 2022-2022 Fuwn // SPDX-License-Identifier: GPL-3.0-only use actix_web::{HttpRequest, HttpResponse}; diff --git a/src/structures.rs b/src/structures.rs index 7aa684c..4ed5f47 100644 --- a/src/structures.rs +++ b/src/structures.rs @@ -1,4 +1,19 @@ -// Copyright (C) 2021-2021 the senpy club +// This file is part of api-worker . +// Copyright (C) 2022-2022 Fuwn +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 3. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// Copyright (C) 2022-2022 Fuwn // SPDX-License-Identifier: GPL-3.0-only #![allow(clippy::used_underscore_binding)] diff --git a/src/utils.rs b/src/utils.rs index 09c8d49..85ce4ca 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,4 +1,19 @@ -// Copyright (C) 2021-2021 the senpy club +// This file is part of api-worker . +// Copyright (C) 2022-2022 Fuwn +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 3. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// Copyright (C) 2022-2022 Fuwn // SPDX-License-Identifier: GPL-3.0-only use crate::{ -- cgit v1.2.3