aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-20 14:23:16 +0000
committerFuwn <[email protected]>2026-02-20 14:23:16 +0000
commit125e37558b02bb33892608ee1bd6fb1088c1cb23 (patch)
tree2527eac50dc58ef831adaf76d4197b27f7215c32 /src
parentchore: Bump version patch to v0.4.2 (diff)
downloadwindmark-main.tar.xz
windmark-main.zip
chore(license): Relicense under MIT OR Apache-2.0HEADmain
Diffstat (limited to 'src')
-rw-r--r--src/context.rs17
-rw-r--r--src/context/error.rs17
-rw-r--r--src/context/hook.rs17
-rw-r--r--src/context/route.rs17
-rw-r--r--src/handler.rs17
-rw-r--r--src/handler/hooks.rs17
-rw-r--r--src/handler/hooks/post_route.rs17
-rw-r--r--src/handler/hooks/pre_route.rs17
-rw-r--r--src/handler/partial.rs17
-rw-r--r--src/handler/response.rs17
-rw-r--r--src/handler/response/error.rs17
-rw-r--r--src/handler/response/route.rs17
-rw-r--r--src/lib.rs17
-rw-r--r--src/module.rs17
-rw-r--r--src/module/asynchronous.rs17
-rw-r--r--src/module/sync.rs17
-rw-r--r--src/prelude.rs17
-rw-r--r--src/response.rs17
-rw-r--r--src/response/macros.rs17
-rw-r--r--src/router.rs17
-rw-r--r--src/utilities.rs17
21 files changed, 0 insertions, 357 deletions
diff --git a/src/context.rs b/src/context.rs
index 4f97393..b4b75a8 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
#![allow(clippy::module_name_repetitions)]
mod error;
diff --git a/src/context/error.rs b/src/context/error.rs
index 789fb63..ef7ce75 100644
--- a/src/context/error.rs
+++ b/src/context/error.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use openssl::x509::X509;
use url::Url;
diff --git a/src/context/hook.rs b/src/context/hook.rs
index d033234..25383f1 100644
--- a/src/context/hook.rs
+++ b/src/context/hook.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use std::collections::HashMap;
use matchit::Params;
diff --git a/src/context/route.rs b/src/context/route.rs
index e5a401d..bcc5f2a 100644
--- a/src/context/route.rs
+++ b/src/context/route.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use std::collections::HashMap;
use matchit::Params;
diff --git a/src/handler.rs b/src/handler.rs
index 2678c81..4f0cd60 100644
--- a/src/handler.rs
+++ b/src/handler.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
mod hooks;
mod partial;
mod response;
diff --git a/src/handler/hooks.rs b/src/handler/hooks.rs
index 34ea42e..c107f0d 100644
--- a/src/handler/hooks.rs
+++ b/src/handler/hooks.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
mod post_route;
mod pre_route;
diff --git a/src/handler/hooks/post_route.rs b/src/handler/hooks/post_route.rs
index b8acd35..6bc24b2 100644
--- a/src/handler/hooks/post_route.rs
+++ b/src/handler/hooks/post_route.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use crate::{context::HookContext, response::Response};
#[allow(clippy::module_name_repetitions)]
diff --git a/src/handler/hooks/pre_route.rs b/src/handler/hooks/pre_route.rs
index 4221f14..9b1eb7f 100644
--- a/src/handler/hooks/pre_route.rs
+++ b/src/handler/hooks/pre_route.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use crate::context::HookContext;
#[allow(clippy::module_name_repetitions)]
diff --git a/src/handler/partial.rs b/src/handler/partial.rs
index 913fa07..b8f4057 100644
--- a/src/handler/partial.rs
+++ b/src/handler/partial.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use crate::context::RouteContext;
#[allow(clippy::module_name_repetitions)]
diff --git a/src/handler/response.rs b/src/handler/response.rs
index b1ccae7..c753943 100644
--- a/src/handler/response.rs
+++ b/src/handler/response.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
#![allow(clippy::module_name_repetitions)]
mod error;
diff --git a/src/handler/response/error.rs b/src/handler/response/error.rs
index a8c2745..6d6df34 100644
--- a/src/handler/response/error.rs
+++ b/src/handler/response/error.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use async_trait::async_trait;
use crate::{context::ErrorContext, response::Response};
diff --git a/src/handler/response/route.rs b/src/handler/response/route.rs
index 0c0d0e9..d6977a9 100644
--- a/src/handler/response/route.rs
+++ b/src/handler/response/route.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use async_trait::async_trait;
use crate::{context::RouteContext, response::Response};
diff --git a/src/lib.rs b/src/lib.rs
index 66232c8..3464c50 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
#![deny(
clippy::all,
clippy::nursery,
diff --git a/src/module.rs b/src/module.rs
index 0f8aee9..abb7c87 100644
--- a/src/module.rs
+++ b/src/module.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
mod asynchronous;
mod sync;
diff --git a/src/module/asynchronous.rs b/src/module/asynchronous.rs
index 219f6c2..8822ea4 100644
--- a/src/module/asynchronous.rs
+++ b/src/module/asynchronous.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use crate::context::HookContext;
#[async_trait::async_trait]
diff --git a/src/module/sync.rs b/src/module/sync.rs
index 1e1c565..a38b541 100644
--- a/src/module/sync.rs
+++ b/src/module/sync.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use crate::context::HookContext;
pub trait Module {
diff --git a/src/prelude.rs b/src/prelude.rs
index 8a08b48..5953f69 100644
--- a/src/prelude.rs
+++ b/src/prelude.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
pub use crate::{
context,
module::{AsyncModule, Module},
diff --git a/src/response.rs b/src/response.rs
index 9aee2d3..143ebdc 100644
--- a/src/response.rs
+++ b/src/response.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
//! Content and response handlers
#[cfg(feature = "response-macros")]
diff --git a/src/response/macros.rs b/src/response/macros.rs
index 976973b..807db26 100644
--- a/src/response/macros.rs
+++ b/src/response/macros.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
macro_rules! sync_response {
($($name:ident),*) => {
$(
diff --git a/src/router.rs b/src/router.rs
index b0e9d84..cbe5740 100644
--- a/src/router.rs
+++ b/src/router.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
#![allow(clippy::significant_drop_tightening)]
use std::{
diff --git a/src/utilities.rs b/src/utilities.rs
index 1eb4831..995cfcd 100644
--- a/src/utilities.rs
+++ b/src/utilities.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
//! Utilities to make cumbersome tasks simpler
use std::collections::HashMap;