diff --git a/Cargo.toml b/Cargo.toml index 5ac2827..89067bf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "web-programming"] exclude.workspace = true [workspace.package] -version = "21.8.0" +version = "21.9.0" readme = "README.md" edition = "2024" authors = ["root@ltpp.vip"] diff --git a/core/src/route/struct.rs b/core/src/route/struct.rs index d3c14a3..52caa0e 100644 --- a/core/src/route/struct.rs +++ b/core/src/route/struct.rs @@ -8,7 +8,6 @@ use super::*; #[derive(Clone, Debug, DisplayDebug, Getter)] pub struct RoutePattern( /// The collection of segments that make up the route pattern. - #[get] pub(super) RouteSegmentList, ); @@ -24,19 +23,16 @@ pub struct RoutePattern( pub struct RouteMatcher { /// A hash map for storing and quickly retrieving handlers for static route. /// These are route without any variable path segments. - #[get] #[set(skip)] #[debug(skip)] pub(super) static_route: ServerHookMap, /// A layered map of dynamic routes grouped by segment count. /// Routes are organized by path segment count for efficient filtering during matching. - #[get] #[set(skip)] #[debug(skip)] pub(super) dynamic_route: ServerHookPatternRoute, /// A layered map of regex routes grouped by segment count. /// Routes with tail regex patterns can match paths with more segments. - #[get] #[set(skip)] #[debug(skip)] pub(super) regex_route: ServerHookPatternRoute, diff --git a/type/src/request/struct.rs b/type/src/request/struct.rs index 55bfb50..8128eaa 100644 --- a/type/src/request/struct.rs +++ b/type/src/request/struct.rs @@ -11,31 +11,24 @@ use super::*; pub struct RequestConfig { /// Buffer size for reading operations. #[get(type(copy))] - #[set] pub buffer_size: usize, /// Maximum size for URL path in bytes. #[get(type(copy))] - #[set] pub max_path_size: usize, /// Maximum number of headers allowed in a request. #[get(type(copy))] - #[set] pub max_header_count: usize, /// Maximum size for a header key in bytes. #[get(type(copy))] - #[set] pub max_header_key_size: usize, /// Maximum size for a header value in bytes. #[get(type(copy))] - #[set] pub max_header_value_size: usize, /// Maximum size for request body in bytes. #[get(type(copy))] - #[set] pub max_body_size: usize, /// Timeout for reading data in milliseconds. #[get(type(copy))] - #[set] pub read_timeout_ms: u64, } diff --git a/type/src/task/struct.rs b/type/src/task/struct.rs index 0688e40..467fd7b 100644 --- a/type/src/task/struct.rs +++ b/type/src/task/struct.rs @@ -8,23 +8,11 @@ use super::*; #[derive(Clone, CustomDebug, Data, DisplayDebug)] pub struct Task { /// Pool of unbounded senders for distributing tasks to worker threads. - #[get(pub)] - #[get_mut(pub)] - #[set(pub)] pub pool: Vec>, /// Atomic counter for round-robin task distribution across workers. - #[get(pub)] - #[get_mut(pub)] - #[set(pub)] pub counter: Arc, /// Flag indicating whether the task pool should shut down. - #[get(pub)] - #[get_mut(pub)] - #[set(pub)] pub shutdown: Arc, /// Notification handles for precise wake-up of specific workers. - #[get(pub)] - #[get_mut(pub)] - #[set(pub)] pub notifies: Vec>, }