♻️ Simple & Efficient Gemini-to-HTTP Proxy fuwn.net
proxy gemini-protocol protocol gemini http rust
0
fork

Configure Feed

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

refactor: remove long file headers

There's a LICENSE file anyway.

Fuwn 8fcc115f bdbc4de9

-86
-18
build.rs
··· 1 - // This file is part of September <https://github.com/gemrest/september>. 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 fn main() -> Result<(), Box<dyn std::error::Error>> { 20 2 vergen::EmitBuilder::builder().git_sha(true).emit()?; 21 3
-17
src/html.rs
··· 1 - // This file is part of September <https://github.com/gemrest/september>. 2 - // 3 - // This program is free software: you can redistribute it and/or modify 4 - // it under the terms of the GNU General Public License as published by 5 - // the Free Software Foundation, version 3. 6 - // 7 - // This program is distributed in the hope that it will be useful, but 8 - // WITHOUT ANY WARRANTY; without even the implied warranty of 9 - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10 - // General Public License for more details. 11 - // 12 - // You should have received a copy of the GNU General Public License 13 - // along with this program. If not, see <http://www.gnu.org/licenses/>. 14 - // 15 - // Copyright (C) 2022-2023 Fuwn <contact@fuwn.me> 16 - // SPDX-License-Identifier: GPL-3.0-only 17 - 18 1 use {germ::ast::Node, std::env::var, url::Url}; 19 2 20 3 fn link_from_host_href(url: &Url, href: &str) -> Option<String> {
-17
src/main.rs
··· 1 - // This file is part of September <https://github.com/gemrest/september>. 2 - // 3 - // This program is free software: you can redistribute it and/or modify 4 - // it under the terms of the GNU General Public License as published by 5 - // the Free Software Foundation, version 3. 6 - // 7 - // This program is distributed in the hope that it will be useful, but 8 - // WITHOUT ANY WARRANTY; without even the implied warranty of 9 - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10 - // General Public License for more details. 11 - // 12 - // You should have received a copy of the GNU General Public License 13 - // along with this program. If not, see <http://www.gnu.org/licenses/>. 14 - // 15 - // Copyright (C) 2022-2023 Fuwn <contact@fuwn.me> 16 - // SPDX-License-Identifier: GPL-3.0-only 17 - 18 1 #![deny( 19 2 warnings, 20 3 nonstandard_style,
-17
src/response.rs
··· 1 - // This file is part of September <https://github.com/gemrest/september>. 2 - // 3 - // This program is free software: you can redistribute it and/or modify 4 - // it under the terms of the GNU General Public License as published by 5 - // the Free Software Foundation, version 3. 6 - // 7 - // This program is distributed in the hope that it will be useful, but 8 - // WITHOUT ANY WARRANTY; without even the implied warranty of 9 - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10 - // General Public License for more details. 11 - // 12 - // You should have received a copy of the GNU General Public License 13 - // along with this program. If not, see <http://www.gnu.org/licenses/>. 14 - // 15 - // Copyright (C) 2022-2023 Fuwn <contact@fuwn.me> 16 - // SPDX-License-Identifier: GPL-3.0-only 17 - 18 1 use { 19 2 crate::url::from_path as url_from_path, 20 3 actix_web::{Error, HttpResponse},
-17
src/url.rs
··· 1 - // This file is part of September <https://github.com/gemrest/september>. 2 - // 3 - // This program is free software: you can redistribute it and/or modify 4 - // it under the terms of the GNU General Public License as published by 5 - // the Free Software Foundation, version 3. 6 - // 7 - // This program is distributed in the hope that it will be useful, but 8 - // WITHOUT ANY WARRANTY; without even the implied warranty of 9 - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10 - // General Public License for more details. 11 - // 12 - // You should have received a copy of the GNU General Public License 13 - // along with this program. If not, see <http://www.gnu.org/licenses/>. 14 - // 15 - // Copyright (C) 2022-2023 Fuwn <contact@fuwn.me> 16 - // SPDX-License-Identifier: GPL-3.0-only 17 - 18 1 use url::Url; 19 2 20 3 pub fn from_path(