refactor(tests): reformat code and update dependency management

- Reorganized import statements in adapter tests for better readability
- Replaced or_insert_with(Vec::new) with or_default() in test closures
- Updated Cargo.lock with new dependency versions and checksums
- Added TLS features to tonic dependency configuration
- Included sqlx, chrono, and uuid dependencies with specific features
- Added jsonwebtoken and arc-swap as project dependencies
- Reformatted assertion statements to comply with line length limits
- Adjusted base64 import order in engine codec module
- Updated protobuf include statement formatting
This commit is contained in:
zhenyi
2026-06-11 12:11:05 +08:00
parent 06e8ee96a5
commit 821537186e
111 changed files with 10458 additions and 385 deletions
+11 -5
View File
@@ -5,12 +5,18 @@ pub mod packet;
pub mod parser;
pub mod server;
pub mod session_store;
#[allow(clippy::module_inception)]
pub mod socket;
pub use adapter::{Adapter, AdapterError, BroadcastOptions, BroadcastFlags, BusMessage, LocalAdapter, RedisAdapter, NatsAdapter, SocketInfo};
pub use message_bus::{MessageBus, MessageBusError, RedisMessageBus, NatsMessageBus};
pub use namespace::{is_valid_namespace, Namespace, NamespaceManager};
pub use adapter::{
Adapter, AdapterError, BroadcastFlags, BroadcastOptions, BusMessage, LocalAdapter, NatsAdapter,
RedisAdapter, SocketInfo,
};
pub use message_bus::{MessageBus, MessageBusError, NatsMessageBus, RedisMessageBus};
pub use namespace::{Namespace, NamespaceManager, is_valid_namespace};
pub use packet::{Packet, PacketType};
pub use server::{SocketServer, SocketServerBuilder};
pub use session_store::{InMemorySessionStore, RedisSessionStore, SessionError, SessionInfo, SessionStoreTrait};
pub use socket::Socket;
pub use session_store::{
InMemorySessionStore, RedisSessionStore, SessionError, SessionInfo, SessionStoreTrait,
};
pub use socket::Socket;