From db48fefde3a9ac74d4f23125bd7c4f9e5f94c866 Mon Sep 17 00:00:00 2001 From: HTGAzureX1212 <39023054+HTGAzureX1212@users.noreply.github.com> Date: Sat, 2 Nov 2024 22:19:13 +0800 Subject: [PATCH] rename to extractors for future usage --- api-backend/Cargo.lock | 2 +- api-backend/Cargo.toml | 2 +- .../Cargo.toml | 4 ++-- .../src/lib.rs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename api-backend/{hartex-backend-layers => hartex-backend-extractors}/Cargo.toml (82%) rename api-backend/{hartex-backend-layers => hartex-backend-extractors}/src/lib.rs (89%) diff --git a/api-backend/Cargo.lock b/api-backend/Cargo.lock index 42f2368fd..b1121d786 100644 --- a/api-backend/Cargo.lock +++ b/api-backend/Cargo.lock @@ -724,7 +724,7 @@ dependencies = [ ] [[package]] -name = "hartex_backend_layers" +name = "hartex_backend_extractors" version = "0.13.0" [[package]] diff --git a/api-backend/Cargo.toml b/api-backend/Cargo.toml index dca2ebb8d..b2ed39034 100644 --- a/api-backend/Cargo.toml +++ b/api-backend/Cargo.toml @@ -1,7 +1,7 @@ [workspace] members = [ "hartex-backend-driver", - "hartex-backend-layers", + "hartex-backend-extractors", "hartex-backend-models", "hartex-backend-routes", ] diff --git a/api-backend/hartex-backend-layers/Cargo.toml b/api-backend/hartex-backend-extractors/Cargo.toml similarity index 82% rename from api-backend/hartex-backend-layers/Cargo.toml rename to api-backend/hartex-backend-extractors/Cargo.toml index 2f0edaf95..19c979c5f 100644 --- a/api-backend/hartex-backend-layers/Cargo.toml +++ b/api-backend/hartex-backend-extractors/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "hartex_backend_layers" +name = "hartex_backend_extractors" version = "0.13.0" edition = "2021" description = """ -Backend middleware +Backend extractors """ license = "AGPL-3.0-or-later" rust-version = "1.83.0" diff --git a/api-backend/hartex-backend-layers/src/lib.rs b/api-backend/hartex-backend-extractors/src/lib.rs similarity index 89% rename from api-backend/hartex-backend-layers/src/lib.rs rename to api-backend/hartex-backend-extractors/src/lib.rs index 3357b7cd5..0d9dfa73a 100644 --- a/api-backend/hartex-backend-layers/src/lib.rs +++ b/api-backend/hartex-backend-extractors/src/lib.rs @@ -20,9 +20,9 @@ * with HarTex. If not, see . */ -//! # Backend Layers +//! # Backend Extractors //! -//! This crate defines certain middleware layers for use with the Axum HTTP server. +//! This crate defines certain extractors for use with the Axum HTTP server. #![deny(clippy::pedantic)] #![deny(unsafe_code)]