summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-09-21 18:09:52 +0800
committer魏曹先生 <1992414357@qq.com>2025-09-21 18:09:52 +0800
commitf978525bfc600d609f54b23e161c64c2a1eeffa2 (patch)
tree603a6b67e3d49e2d0d36aeeeb02ec6408d25ae5d
parenta1a4c428827fa6d94eb809793076f497d7e2933d (diff)
Add some dependencies 1. thiserror 2. Upgrade base64 3. pem 4. crc
-rw-r--r--Cargo.lock58
-rw-r--r--crates/utils/tcp_connection/Cargo.toml8
2 files changed, 57 insertions, 9 deletions
diff --git a/Cargo.lock b/Cargo.lock
index be19f30..8e334b3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -62,12 +62,6 @@ dependencies = [
[[package]]
name = "base64"
-version = "0.21.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
-
-[[package]]
-name = "base64"
version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
@@ -225,6 +219,21 @@ dependencies = [
]
[[package]]
+name = "crc"
+version = "3.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9710d3b3739c2e349eb44fe848ad0b7c8cb1e42bd87ee49371df2f7acaf3e675"
+dependencies = [
+ "crc-catalog",
+]
+
+[[package]]
+name = "crc-catalog"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5"
+
+[[package]]
name = "crypto-common"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -632,6 +641,16 @@ dependencies = [
]
[[package]]
+name = "pem"
+version = "3.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38af38e8470ac9dee3ce1bae1af9c1671fffc44ddfd8bd1d0a3445bf349a8ef3"
+dependencies = [
+ "base64",
+ "serde",
+]
+
+[[package]]
name = "pem-rfc7468"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -794,7 +813,7 @@ version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "db09040cc89e461f1a265139777a2bde7f8d8c67c4936f700c63ce3e2904d468"
dependencies = [
- "base64 0.22.1",
+ "base64",
"bitflags",
"serde",
"serde_derive",
@@ -1062,13 +1081,16 @@ dependencies = [
name = "tcp_connection"
version = "0.1.0"
dependencies = [
- "base64 0.21.7",
+ "base64",
+ "crc",
"ed25519-dalek",
+ "pem",
"rand 0.10.0-rc.0",
"ring",
"rsa",
"serde",
"serde_json",
+ "thiserror",
"tokio",
"uuid",
]
@@ -1082,6 +1104,26 @@ dependencies = [
]
[[package]]
+name = "thiserror"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
+dependencies = [
+ "thiserror-impl",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
name = "tokio"
version = "1.47.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/crates/utils/tcp_connection/Cargo.toml b/crates/utils/tcp_connection/Cargo.toml
index 31b192a..e70baf0 100644
--- a/crates/utils/tcp_connection/Cargo.toml
+++ b/crates/utils/tcp_connection/Cargo.toml
@@ -10,11 +10,17 @@ tokio = { version = "1.46.1", features = ["full"] }
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"
+# Error handling
+thiserror = "1.0.69"
+
# Uuid & Random
uuid = "1.18.1"
+# Crypto
rsa = { version = "0.9", features = ["pkcs5", "sha2"] }
ed25519-dalek = "3.0.0-pre.1"
ring = "0.17.14"
rand = "0.10.0-rc.0"
-base64 = "0.21.7"
+base64 = "0.22.1"
+pem = "3.0.5"
+crc = "3.3.0"