From 5c12ce12024439c4a1293fc916dcf29cddbecb96 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 8 Mar 2023 22:18:40 +0100 Subject: [PATCH] Add AGPL Headers --- schemsearch-cli/src/main.rs | 21 +++++++++++++++++++-- schemsearch-cli/src/types.rs | 17 +++++++++++++++++ schemsearch-files/src/lib.rs | 17 +++++++++++++++++ schemsearch-java/src/lib.rs | 17 +++++++++++++++++ schemsearch-lib/src/lib.rs | 17 +++++++++++++++++ schemsearch-lib/src/pattern_mapper.rs | 17 +++++++++++++++++ schemsearch-sql/src/lib.rs | 17 +++++++++++++++++ schemsearch-sql/src/properties.rs | 17 +++++++++++++++++ schemsearch_faster/src/lib.rs | 17 +++++++++++++++++ 9 files changed, 155 insertions(+), 2 deletions(-) diff --git a/schemsearch-cli/src/main.rs b/schemsearch-cli/src/main.rs index 1b9f953..5c5658f 100644 --- a/schemsearch-cli/src/main.rs +++ b/schemsearch-cli/src/main.rs @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023 Chaoscaot + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + mod types; use std::fs::File; @@ -6,12 +23,12 @@ use clap::{command, Arg, ArgAction, Command}; use schemsearch_files::Schematic; use std::path::Path; use clap::error::ErrorKind; +use schemsearch_lib::{search, SearchBehavior}; +use crate::types::{PathSchematicSupplier, SchematicSupplierType}; #[cfg(feature = "sql")] use futures::executor::block_on; -use schemsearch_lib::{search, SearchBehavior}; #[cfg(feature = "sql")] use schemsearch_sql::load_all_schematics; -use crate::types::{PathSchematicSupplier, SchematicSupplierType}; #[cfg(feature = "sql")] use crate::types::SqlSchematicSupplier; diff --git a/schemsearch-cli/src/types.rs b/schemsearch-cli/src/types.rs index 6d453b9..6760184 100644 --- a/schemsearch-cli/src/types.rs +++ b/schemsearch-cli/src/types.rs @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023 Chaoscaot + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + use std::path::Path; #[cfg(feature = "sql")] use futures::executor::block_on; diff --git a/schemsearch-files/src/lib.rs b/schemsearch-files/src/lib.rs index 6863873..fb1a662 100644 --- a/schemsearch-files/src/lib.rs +++ b/schemsearch-files/src/lib.rs @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023 Chaoscaot + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + use std::io::Read; use std::path::Path; use nbt::{Map, Value}; diff --git a/schemsearch-java/src/lib.rs b/schemsearch-java/src/lib.rs index dd20b3e..f1db3e9 100644 --- a/schemsearch-java/src/lib.rs +++ b/schemsearch-java/src/lib.rs @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023 Chaoscaot + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + use std::path::Path; use jni::JNIEnv; diff --git a/schemsearch-lib/src/lib.rs b/schemsearch-lib/src/lib.rs index 00c3819..9f1503f 100644 --- a/schemsearch-lib/src/lib.rs +++ b/schemsearch-lib/src/lib.rs @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023 Chaoscaot + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + pub mod pattern_mapper; use pattern_mapper::match_palette; diff --git a/schemsearch-lib/src/pattern_mapper.rs b/schemsearch-lib/src/pattern_mapper.rs index 2f6e483..cf472c4 100644 --- a/schemsearch-lib/src/pattern_mapper.rs +++ b/schemsearch-lib/src/pattern_mapper.rs @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023 Chaoscaot + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + use nbt::Map; use schemsearch_files::Schematic; use crate::normalize_data; diff --git a/schemsearch-sql/src/lib.rs b/schemsearch-sql/src/lib.rs index a1133a6..cb0f2cc 100644 --- a/schemsearch-sql/src/lib.rs +++ b/schemsearch-sql/src/lib.rs @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023 Chaoscaot + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + use std::sync::Mutex; use sqlx::{Executor, MySql, MySqlPool, Pool, Row}; use sqlx::mysql::MySqlConnectOptions; diff --git a/schemsearch-sql/src/properties.rs b/schemsearch-sql/src/properties.rs index a152a08..0cafde2 100644 --- a/schemsearch-sql/src/properties.rs +++ b/schemsearch-sql/src/properties.rs @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023 Chaoscaot + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + use std::collections::HashMap; use std::fs::read_to_string; use std::path::Path; diff --git a/schemsearch_faster/src/lib.rs b/schemsearch_faster/src/lib.rs index 8ff6e62..fc1ddd9 100644 --- a/schemsearch_faster/src/lib.rs +++ b/schemsearch_faster/src/lib.rs @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2023 Chaoscaot + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + use nbt::Map; use schemsearch_files::Schematic;