chore(deps): prune unused deps, tighten tokio features, align tungstenite (HY-01, HY-05, HY-07, HY-08, HY-12)
- HY-01: openapiv3 -> dev-dependencies (test-only usage) - HY-05: drop bytes (src sites renamed to axum::body::Bytes re-export), keep parking_lot (genuinely used); tokio "full" -> the seven features actually used (macros, rt-multi-thread, io-util, net, fs, time, sync) - HY-08: test-support extends wss; dev tokio-tungstenite matches the wss feature set - HY-12: tokio-tungstenite 0.28 -> 0.29 to match axum's tungstenite; duplicate roots in cargo tree -d: 9 -> 6 (tungstenite, cpufeatures, rand dupes collapsed) - HY-07 ride-along: READ_SLOTS privatized - CON-10 residue: verified already fixed (full_surface required-features) Verified: cargo test (300), --all-features (371+36), --features mcp (355+9), --features wss (316), check --no-default-features, clippy (all-targets and --all-features, -D warnings), fmt --check
This commit is contained in:
@@ -65,7 +65,7 @@ pub const WS_MESSAGE_CAP: usize = 1024 * 1024;
|
||||
|
||||
/// Inbound buffer: slots × in-flight message bytes. The WS read task
|
||||
/// awaits `send` when full — the backpressure mechanism (OQ-01a).
|
||||
pub const READ_SLOTS: usize = 64;
|
||||
const READ_SLOTS: usize = 64;
|
||||
|
||||
const WRITE_SLOTS: usize = 64;
|
||||
|
||||
@@ -423,7 +423,7 @@ impl WsPumps {
|
||||
struct AxumFraming;
|
||||
|
||||
impl WsFraming for AxumFraming {
|
||||
type Bytes = bytes::Bytes;
|
||||
type Bytes = axum::body::Bytes;
|
||||
type Msg = AxumMessage;
|
||||
|
||||
fn binary(msg: &AxumMessage) -> Option<&Self::Bytes> {
|
||||
@@ -668,7 +668,7 @@ struct TungsteniteFraming;
|
||||
|
||||
#[cfg(any(test, feature = "wss"))]
|
||||
impl WsFraming for TungsteniteFraming {
|
||||
type Bytes = bytes::Bytes;
|
||||
type Bytes = axum::body::Bytes;
|
||||
type Msg = tokio_tungstenite::tungstenite::Message;
|
||||
|
||||
fn binary(msg: &Self::Msg) -> Option<&Self::Bytes> {
|
||||
|
||||
Reference in New Issue
Block a user