Skip to content

Commit f9ea234

Browse files
committed
feat: v2.2.0
1 parent 76b0be3 commit f9ea234

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tcp-request"
3-
version = "2.1.4"
3+
version = "2.2.0"
44
edition = "2024"
55
authors = ["ltpp-universe <root@ltpp.vip>"]
66
license = "MIT"
@@ -16,7 +16,7 @@ exclude = [
1616
]
1717

1818
[dependencies]
19-
lombok-macros = "1.9.6"
19+
lombok-macros = "1.10.0"
2020

2121
[profile.dev]
2222
incremental = false

src/common/const.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pub const EMPTY_STR: &str = "";
2+
pub const DEFAULT_WEB_PORT: usize = 80;
3+
pub const SPLIT_REQUEST: &str = "\r\n\r\n";
4+
pub const SPLIT_REQUEST_BYTES: &[u8] = SPLIT_REQUEST.as_bytes();
5+
pub const DEFAULT_BUFFER_SIZE: usize = 512_000;
6+
pub const DEFAULT_TIMEOUT: u64 = u64::MAX;

src/common/constant.rs

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/common/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pub(crate) mod constant;
1+
pub(crate) mod r#const;
22
pub(crate) mod r#type;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub use response::{
1313
r#trait::ResponseTrait, r#type::BoxResponseTrait,
1414
};
1515

16-
pub(crate) use common::{constant::*, r#type::*};
16+
pub(crate) use common::{r#const::*, r#type::*};
1717
pub(crate) use lombok_macros::*;
1818
pub(crate) use request::{
1919
config::r#type::*, error::r#type::Error, request::r#type::*, r#type::RequestResult,

0 commit comments

Comments
 (0)