🦠 The Definitive Gemini Protocol Toolkit
gemini gemini-protocol gemtext parser zero-dependency toolkit ast converter html markdown cli networking
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs(examples): Remove copyright header

Fuwn 861aefea 236e1221

-144
-18
examples/ast.rs
··· 1 - // This file is part of Germ <https://github.com/gemrest/germ>. 2 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 3 - // 4 - // This program is free software: you can redistribute it and/or modify 5 - // it under the terms of the GNU General Public License as published by 6 - // the Free Software Foundation, version 3. 7 - // 8 - // This program is distributed in the hope that it will be useful, but 9 - // WITHOUT ANY WARRANTY; without even the implied warranty of 10 - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 - // General Public License for more details. 12 - // 13 - // You should have received a copy of the GNU General Public License 14 - // along with this program. If not, see <http://www.gnu.org/licenses/>. 15 - // 16 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 17 - // SPDX-License-Identifier: GPL-3.0-only 18 - 19 1 //! This example demonstrates Germ's capabilities for parsing Gemtext into an 20 2 //! abstract syntax tree. 21 3
-18
examples/ast_to_gemtext.rs
··· 1 - // This file is part of Germ <https://github.com/gemrest/germ>. 2 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 3 - // 4 - // This program is free software: you can redistribute it and/or modify 5 - // it under the terms of the GNU General Public License as published by 6 - // the Free Software Foundation, version 3. 7 - // 8 - // This program is distributed in the hope that it will be useful, but 9 - // WITHOUT ANY WARRANTY; without even the implied warranty of 10 - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 - // General Public License for more details. 12 - // 13 - // You should have received a copy of the GNU General Public License 14 - // along with this program. If not, see <http://www.gnu.org/licenses/>. 15 - // 16 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 17 - // SPDX-License-Identifier: GPL-3.0-only 18 - 19 1 //! This example converts Gemtext into an abstract syntax tree and then back 20 2 //! into Gemtext, demonstrating both Germ's parsing and generation capabilities. 21 3
-18
examples/html.rs
··· 1 - // This file is part of Germ <https://github.com/gemrest/germ>. 2 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 3 - // 4 - // This program is free software: you can redistribute it and/or modify 5 - // it under the terms of the GNU General Public License as published by 6 - // the Free Software Foundation, version 3. 7 - // 8 - // This program is distributed in the hope that it will be useful, but 9 - // WITHOUT ANY WARRANTY; without even the implied warranty of 10 - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 - // General Public License for more details. 12 - // 13 - // You should have received a copy of the GNU General Public License 14 - // along with this program. If not, see <http://www.gnu.org/licenses/>. 15 - // 16 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 17 - // SPDX-License-Identifier: GPL-3.0-only 18 - 19 1 //! This example demonstrates Germ's capabilities for converting Gemtext to 20 2 //! HTML. 21 3
-18
examples/markdown.rs
··· 1 - // This file is part of Germ <https://github.com/gemrest/germ>. 2 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 3 - // 4 - // This program is free software: you can redistribute it and/or modify 5 - // it under the terms of the GNU General Public License as published by 6 - // the Free Software Foundation, version 3. 7 - // 8 - // This program is distributed in the hope that it will be useful, but 9 - // WITHOUT ANY WARRANTY; without even the implied warranty of 10 - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 - // General Public License for more details. 12 - // 13 - // You should have received a copy of the GNU General Public License 14 - // along with this program. If not, see <http://www.gnu.org/licenses/>. 15 - // 16 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 17 - // SPDX-License-Identifier: GPL-3.0-only 18 - 19 1 //! This example demonstrates Germ's capabilities for converting Gemtext to 20 2 //! Markdown. 21 3
-18
examples/meta.rs
··· 1 - // This file is part of Germ <https://github.com/gemrest/germ>. 2 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 3 - // 4 - // This program is free software: you can redistribute it and/or modify 5 - // it under the terms of the GNU General Public License as published by 6 - // the Free Software Foundation, version 3. 7 - // 8 - // This program is distributed in the hope that it will be useful, but 9 - // WITHOUT ANY WARRANTY; without even the implied warranty of 10 - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 - // General Public License for more details. 12 - // 13 - // You should have received a copy of the GNU General Public License 14 - // along with this program. If not, see <http://www.gnu.org/licenses/>. 15 - // 16 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 17 - // SPDX-License-Identifier: GPL-3.0-only 18 - 19 1 //! This example demonstrates Germ's capabilities for parsing Gemini meta 20 2 //! sections. 21 3
-18
examples/request.rs
··· 1 - // This file is part of Germ <https://github.com/gemrest/germ>. 2 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 3 - // 4 - // This program is free software: you can redistribute it and/or modify 5 - // it under the terms of the GNU General Public License as published by 6 - // the Free Software Foundation, version 3. 7 - // 8 - // This program is distributed in the hope that it will be useful, but 9 - // WITHOUT ANY WARRANTY; without even the implied warranty of 10 - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 - // General Public License for more details. 12 - // 13 - // You should have received a copy of the GNU General Public License 14 - // along with this program. If not, see <http://www.gnu.org/licenses/>. 15 - // 16 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 17 - // SPDX-License-Identifier: GPL-3.0-only 18 - 19 1 //! This example demonstrates Germ's capabilities for performing a non-blocking 20 2 //! request to a Gemini capsule. 21 3
-18
examples/request_blocking.rs
··· 1 - // This file is part of Germ <https://github.com/gemrest/germ>. 2 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 3 - // 4 - // This program is free software: you can redistribute it and/or modify 5 - // it under the terms of the GNU General Public License as published by 6 - // the Free Software Foundation, version 3. 7 - // 8 - // This program is distributed in the hope that it will be useful, but 9 - // WITHOUT ANY WARRANTY; without even the implied warranty of 10 - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 - // General Public License for more details. 12 - // 13 - // You should have received a copy of the GNU General Public License 14 - // along with this program. If not, see <http://www.gnu.org/licenses/>. 15 - // 16 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 17 - // SPDX-License-Identifier: GPL-3.0-only 18 - 19 1 //! This example demonstrates Germ's capabilities for performing a blocking 20 2 //! request to a Gemini capsule. 21 3
-18
examples/request_blocking_to_gemtext_from_ast.rs
··· 1 - // This file is part of Germ <https://github.com/gemrest/germ>. 2 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 3 - // 4 - // This program is free software: you can redistribute it and/or modify 5 - // it under the terms of the GNU General Public License as published by 6 - // the Free Software Foundation, version 3. 7 - // 8 - // This program is distributed in the hope that it will be useful, but 9 - // WITHOUT ANY WARRANTY; without even the implied warranty of 10 - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 - // General Public License for more details. 12 - // 13 - // You should have received a copy of the GNU General Public License 14 - // along with this program. If not, see <http://www.gnu.org/licenses/>. 15 - // 16 - // Copyright (C) 2022-2022 Fuwn <contact@fuwn.me> 17 - // SPDX-License-Identifier: GPL-3.0-only 18 - 19 1 //! This example demonstrates a chain of Germ's capabilities by fetching a 20 2 //! Gemini capsule, parsing the response content into an abstract syntax tree, 21 3 //! and converting the abstract syntax tree back to Gemtext, identical to the