aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-07 21:39:02 -0800
committerFuwn <[email protected]>2022-03-07 21:39:02 -0800
commit586c755d1613c8eabfe2a881613767b3a7908ebe (patch)
treec96a6fe5b7344eea11055c96bc3a0803d4442546
parentchore(nix): remove (diff)
downloadapi-worker-586c755d1613c8eabfe2a881613767b3a7908ebe.tar.xz
api-worker-586c755d1613c8eabfe2a881613767b3a7908ebe.zip
chore: licensing
-rw-r--r--.gitignore12
-rw-r--r--.license_template19
-rw-r--r--rustfmt.toml2
-rw-r--r--src/constants.rs17
-rw-r--r--src/main.rs17
-rw-r--r--src/routes.rs17
-rw-r--r--src/structures.rs17
-rw-r--r--src/utils.rs17
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 <https://github.com/senpy-club/api-worker>.
+// Copyright (C) {20\d{2}(-20\d{2})?} Fuwn <[email protected]>
+//
+// 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 <http://www.gnu.org/licenses/>.
+//
+// Copyright (C) {20\d{2}(-20\d{2})?} Fuwn <[email protected]>
+// 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 <https://github.com/senpy-club/api-worker>.
+// Copyright (C) 2022-2022 Fuwn <[email protected]>
+//
+// 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 <http://www.gnu.org/licenses/>.
+//
+// Copyright (C) 2022-2022 Fuwn <[email protected]>
// 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 <https://github.com/senpy-club/api-worker>.
+// Copyright (C) 2022-2022 Fuwn <[email protected]>
+//
+// 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 <http://www.gnu.org/licenses/>.
+//
+// Copyright (C) 2022-2022 Fuwn <[email protected]>
// 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 <https://github.com/senpy-club/api-worker>.
+// Copyright (C) 2022-2022 Fuwn <[email protected]>
+//
+// 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 <http://www.gnu.org/licenses/>.
+//
+// Copyright (C) 2022-2022 Fuwn <[email protected]>
// 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 <https://github.com/senpy-club/api-worker>.
+// Copyright (C) 2022-2022 Fuwn <[email protected]>
+//
+// 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 <http://www.gnu.org/licenses/>.
+//
+// Copyright (C) 2022-2022 Fuwn <[email protected]>
// 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 <https://github.com/senpy-club/api-worker>.
+// Copyright (C) 2022-2022 Fuwn <[email protected]>
+//
+// 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 <http://www.gnu.org/licenses/>.
+//
+// Copyright (C) 2022-2022 Fuwn <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only
use crate::{