diff options
| author | Fuwn <[email protected]> | 2026-02-20 11:05:09 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-20 11:05:09 +0000 |
| commit | 35921f7e5b85dab0e7578d767caf607bf2f13fc7 (patch) | |
| tree | eb642a420ef01044f831c22bb5e5a43f477ebeb7 /src | |
| parent | chore: Bump version patch (diff) | |
| download | germ-35921f7e5b85dab0e7578d767caf607bf2f13fc7.tar.xz germ-35921f7e5b85dab0e7578d767caf607bf2f13fc7.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/ast.rs | 18 | ||||
| -rw-r--r-- | src/ast/container.rs | 18 | ||||
| -rw-r--r-- | src/ast/macros.rs | 18 | ||||
| -rw-r--r-- | src/ast/node.rs | 18 | ||||
| -rw-r--r-- | src/convert.rs | 18 | ||||
| -rw-r--r-- | src/convert/html.rs | 18 | ||||
| -rw-r--r-- | src/convert/macros.rs | 18 | ||||
| -rw-r--r-- | src/convert/markdown.rs | 18 | ||||
| -rw-r--r-- | src/lib.rs | 18 | ||||
| -rw-r--r-- | src/meta.rs | 18 | ||||
| -rw-r--r-- | src/quick.rs | 18 | ||||
| -rw-r--r-- | src/request.rs | 18 | ||||
| -rw-r--r-- | src/request/blocking.rs | 18 | ||||
| -rw-r--r-- | src/request/non_blocking.rs | 18 | ||||
| -rw-r--r-- | src/request/response.rs | 18 | ||||
| -rw-r--r-- | src/request/status.rs | 18 | ||||
| -rw-r--r-- | src/request/verifier.rs | 18 |
17 files changed, 0 insertions, 306 deletions
@@ -1,21 +1,3 @@ -// This file is part of Germ <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use {crate::ast::Node, std::fmt::Write}; pub fn convert(source: &[Node]) -> String { @@ -1,21 +1,3 @@ -// This file is part of Germ <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// 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 <https://github.com/gemrest/germ>. -// Copyright (C) 2022-2025 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-2025 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use { rustls::{ Certificate, |