summaryrefslogtreecommitdiff
path: root/crates/utils/tcp_connection/Cargo.toml
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-09-26 17:15:06 +0800
committer魏曹先生 <1992414357@qq.com>2025-09-26 17:15:06 +0800
commite8160eda1b68a42b8d861bbec5e9c1dc555ea783 (patch)
tree6ab8565cd71aa01009303efb560bb34dbd4a7480 /crates/utils/tcp_connection/Cargo.toml
parentbb4a3f46d9d217fd71ee8a0ebdd78cc2c427fa9f (diff)
feat(tcp_connection): add MessagePack serialization support
- Add rmp-serde dependency for MessagePack serialization - Implement write_msgpack and read_msgpack methods for basic MessagePack support - Add write_large_msgpack and read_large_msgpack methods for chunked transmission - Add error conversions for rmp-serde errors - Add comprehensive tests for MessagePack functionality - Fix code formatting and improve readability - Make stream field pub(crate) for better access control All tests pass successfully, ensuring backward compatibility.
Diffstat (limited to 'crates/utils/tcp_connection/Cargo.toml')
-rw-r--r--crates/utils/tcp_connection/Cargo.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/utils/tcp_connection/Cargo.toml b/crates/utils/tcp_connection/Cargo.toml
index e70baf0..22466c8 100644
--- a/crates/utils/tcp_connection/Cargo.toml
+++ b/crates/utils/tcp_connection/Cargo.toml
@@ -9,6 +9,7 @@ tokio = { version = "1.46.1", features = ["full"] }
# Serialization
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"
+rmp-serde = "1.3.0"
# Error handling
thiserror = "1.0.69"