diff --git a/entities/src/state/mod.rs b/entities/src/state/mod.rs index a887b53..7fe95d9 100644 --- a/entities/src/state/mod.rs +++ b/entities/src/state/mod.rs @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-only //! Global state and structures. //! For build process decoupling diff --git a/migration/src/main.rs b/migration/src/main.rs index c6b6e48..dfc526a 100644 --- a/migration/src/main.rs +++ b/migration/src/main.rs @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-only use sea_orm_migration::prelude::*; #[async_std::main] diff --git a/scanner/src/about_parser.rs b/scanner/src/about_parser.rs index db6ee9f..5134960 100644 --- a/scanner/src/about_parser.rs +++ b/scanner/src/about_parser.rs @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-only use regex::{Regex, RegexBuilder}; use scraper::{Html, Selector}; use thiserror::Error; diff --git a/scanner/src/cache_update.rs b/scanner/src/cache_update.rs index 0ef1cf5..5edc59b 100644 --- a/scanner/src/cache_update.rs +++ b/scanner/src/cache_update.rs @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-only use std::collections::HashMap; use chrono::{Days, Utc}; diff --git a/scanner/src/instance_check.rs b/scanner/src/instance_check.rs index 68174a8..8944045 100644 --- a/scanner/src/instance_check.rs +++ b/scanner/src/instance_check.rs @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-only //! Instance health/uptime checking code use std::time::Instant; diff --git a/scanner/src/instance_parser.rs b/scanner/src/instance_parser.rs index 16efbc1..95e4ab8 100644 --- a/scanner/src/instance_parser.rs +++ b/scanner/src/instance_parser.rs @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-only use std::collections::HashMap; use reqwest::Url; diff --git a/scanner/src/lib.rs b/scanner/src/lib.rs index 8291dc6..24a4640 100644 --- a/scanner/src/lib.rs +++ b/scanner/src/lib.rs @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-only use std::{ sync::{Arc, Mutex}, time::Instant, diff --git a/server/src/api.rs b/server/src/api.rs index cc32565..3739537 100644 --- a/server/src/api.rs +++ b/server/src/api.rs @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-only use crate::{Result, ServerError}; use axum::response::IntoResponse; use axum::{extract::State, Json}; diff --git a/server/src/lib.rs b/server/src/lib.rs index 64834a6..db48b94 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-only use std::{borrow::Cow, net::SocketAddr, sync::Arc}; use axum::{extract::DefaultBodyLimit, http::HeaderValue, response::Html, routing::get, Router}; diff --git a/server/src/website.rs b/server/src/website.rs index c08a0f8..f567e5a 100644 --- a/server/src/website.rs +++ b/server/src/website.rs @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-only use std::sync::Arc; use crate::Result; diff --git a/server/templates/about.html.j2 b/server/templates/about.html.j2 index e1c7cd5..cb8ea54 100644 --- a/server/templates/about.html.j2 +++ b/server/templates/about.html.j2 @@ -1,3 +1,4 @@ +{# SPDX-License-Identifier: AGPL-3.0-only #} diff --git a/server/templates/instances.html.j2 b/server/templates/instances.html.j2 index 1454c52..92db110 100644 --- a/server/templates/instances.html.j2 +++ b/server/templates/instances.html.j2 @@ -1,3 +1,4 @@ +{# SPDX-License-Identifier: AGPL-3.0-only #} diff --git a/src/main.rs b/src/main.rs index 1e89eff..8496021 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: AGPL-3.0-only use std::{env::var, time::Duration}; use entities::state::scanner::ScannerConfig;