start work on prudp v0
This commit is contained in:
parent
5954ea434c
commit
4d4fc6c7bf
10 changed files with 160 additions and 7 deletions
|
|
@ -9,7 +9,7 @@ tokio = { version = "1.47.0", features = ["full"] }
|
|||
hmac = "0.12.1"
|
||||
md-5 = "^0.10.6"
|
||||
rc4 = "0.1.0"
|
||||
v-byte-helpers = { git = "https://github.com/DJMrTV/VByteMacros", version = "0.1.1" }
|
||||
v-byte-helpers = { git = "https://github.com/RusticMaple/VByteMacros", version = "0.1.1" }
|
||||
thiserror = "2.0.12"
|
||||
log = "0.4.27"
|
||||
async-trait = "0.1.88"
|
||||
|
|
@ -23,4 +23,4 @@ path = "src/executables/proxy_insecure.rs"
|
|||
|
||||
[[bin]]
|
||||
name = "proxy_secure"
|
||||
path = "src/executables/proxy_secure.rs"
|
||||
path = "src/executables/proxy_secure.rs"
|
||||
|
|
|
|||
12
prudpv1/src/prudp/packet/v1/sanity_checks.rs
Normal file
12
prudpv1/src/prudp/packet/v1/sanity_checks.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
//! # PRUDPV1 Feature sanity checks
|
||||
//!
|
||||
//! Checks wether the set features are actually sensical or wether they are
|
||||
//! nonsense and throws a compiler error incase of nonsense
|
||||
|
||||
#[cfg(feature = "friends")]
|
||||
compile_error!(
|
||||
"friends uses prudpv0 instead of prudpv1, please do not enable both at the same time"
|
||||
);
|
||||
|
||||
#[cfg(feature = "prudpv0")]
|
||||
compile_error!("you cannot enable two prudp versions at the same time");
|
||||
Loading…
Add table
Add a link
Reference in a new issue