Chore: Bump rand->0.9, tokio-tungstenite->0.26

This commit is contained in:
Kyle Simpson
2025-02-21 13:08:25 +00:00
parent b46a568fb5
commit b39ab98223
8 changed files with 34 additions and 27 deletions

View File

@@ -9,4 +9,16 @@ compile_error!(
If you are unsure, go with `rustls`."
);
#[cfg(any(
all(feature = "driver", feature = "tws", feature = "tungstenite"),
all(feature = "driver", not(feature = "tws"), not(feature = "tungstenite"))
))]
compile_error!(
"You have the `driver` feature enabled: \
this requires you specify either: \n\
- `tungstenite` (recommended with serenity)\n\
- or `tws` (recommended with twilight).\n\
You have either specified none, or both - choose exactly one."
);
fn main() {}