From 35921f7e5b85dab0e7578d767caf607bf2f13fc7 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 20 Feb 2026 11:05:09 +0000 Subject: chore(license): Relicense under MIT OR Apache-2.0 --- src/ast.rs | 18 ------------------ src/ast/container.rs | 18 ------------------ src/ast/macros.rs | 18 ------------------ src/ast/node.rs | 18 ------------------ src/convert.rs | 18 ------------------ src/convert/html.rs | 18 ------------------ src/convert/macros.rs | 18 ------------------ src/convert/markdown.rs | 18 ------------------ src/lib.rs | 18 ------------------ src/meta.rs | 18 ------------------ src/quick.rs | 18 ------------------ src/request.rs | 18 ------------------ src/request/blocking.rs | 18 ------------------ src/request/non_blocking.rs | 18 ------------------ src/request/response.rs | 18 ------------------ src/request/status.rs | 18 ------------------ src/request/verifier.rs | 18 ------------------ 17 files changed, 306 deletions(-) (limited to 'src') diff --git a/src/ast.rs b/src/ast.rs index 52c25de..10f8e32 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - //! Build AST trees from Gemtext mod container; diff --git a/src/ast/container.rs b/src/ast/container.rs index d3f57b5..ca4271a 100644 --- a/src/ast/container.rs +++ b/src/ast/container.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - use {super::Node, std::fmt::Write}; /// An AST structure which contains an AST tree diff --git a/src/ast/macros.rs b/src/ast/macros.rs index 598cfa9..6f91ac4 100644 --- a/src/ast/macros.rs +++ b/src/ast/macros.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - /// Convert Gemtext an `Ast` /// /// # Examples diff --git a/src/ast/node.rs b/src/ast/node.rs index 72bc126..af00e8a 100644 --- a/src/ast/node.rs +++ b/src/ast/node.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - /// A Gemtext AST node. /// /// Each Gemtext line is a `Node`, and some lines can even be grouped together, diff --git a/src/convert.rs b/src/convert.rs index ebb4f43..c2a94d9 100644 --- a/src/convert.rs +++ b/src/convert.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - //! Convert Gemtext into many types of markup. use crate::ast::Ast; diff --git a/src/convert/html.rs b/src/convert/html.rs index 1927c86..5774954 100644 --- a/src/convert/html.rs +++ b/src/convert/html.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - use {crate::ast::Node, std::fmt::Write}; pub fn convert(source: &[Node]) -> String { diff --git a/src/convert/macros.rs b/src/convert/macros.rs index a3b6724..c8866f6 100644 --- a/src/convert/macros.rs +++ b/src/convert/macros.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - /// Convert Gemtext into HTML /// /// # Examples diff --git a/src/convert/markdown.rs b/src/convert/markdown.rs index 0dac611..d77434e 100644 --- a/src/convert/markdown.rs +++ b/src/convert/markdown.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - use {crate::ast::Node, std::fmt::Write}; pub fn convert(source: &[Node]) -> String { diff --git a/src/lib.rs b/src/lib.rs index c4893b3..5503a7d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - #![deny( warnings, nonstandard_style, diff --git a/src/meta.rs b/src/meta.rs index 9ec1a89..75452c2 100644 --- a/src/meta.rs +++ b/src/meta.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - use std::{borrow::Cow, collections::HashMap, fmt::Display}; /// Structure-ize a Gemini response's meta section into it's mime type and it's diff --git a/src/quick.rs b/src/quick.rs index 024856e..76dd402 100644 --- a/src/quick.rs +++ b/src/quick.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - pub enum HeadingLevel { One, Two, diff --git a/src/request.rs b/src/request.rs index eb2973b..1d76a9d 100644 --- a/src/request.rs +++ b/src/request.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - //! Make Gemini requests and get sane, structured results mod response; diff --git a/src/request/blocking.rs b/src/request/blocking.rs index 984f886..5e2947a 100644 --- a/src/request/blocking.rs +++ b/src/request/blocking.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - use { crate::request::{GermVerifier, Response}, std::io::{Read, Write}, diff --git a/src/request/non_blocking.rs b/src/request/non_blocking.rs index 85856e7..dd59e6b 100644 --- a/src/request/non_blocking.rs +++ b/src/request/non_blocking.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - use { crate::request::Response, tokio::io::{AsyncReadExt, AsyncWriteExt}, diff --git a/src/request/response.rs b/src/request/response.rs index 0e4877f..b1a5cbc 100644 --- a/src/request/response.rs +++ b/src/request/response.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - use {crate::request::Status, rustls::SupportedCipherSuite, std::borrow::Cow}; #[derive(Debug, Clone, PartialEq)] diff --git a/src/request/status.rs b/src/request/status.rs index 0ec5041..94600bf 100644 --- a/src/request/status.rs +++ b/src/request/status.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - use std::{fmt, fmt::Formatter}; /// Simple Gemini status reporting diff --git a/src/request/verifier.rs b/src/request/verifier.rs index b037353..9fc54a6 100644 --- a/src/request/verifier.rs +++ b/src/request/verifier.rs @@ -1,21 +1,3 @@ -// This file is part of Germ . -// Copyright (C) 2022-2025 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-2025 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - use { rustls::{ Certificate, -- cgit v1.2.3