mumble-web-proxy
mumble-web-proxy copied to clipboard
Build fails
Compiling rtp v0.1.0 (https://github.com/johni0702/rtp?rev=6c0223d#6c0223d8)
error[E0282]: type annotations needed
--> /home/donpimpin/.cargo/git/checkouts/rtp-23e67d7854ed482f/6c0223d/src/rfc3711.rs:477:19
|
476 | let iv = iv ^ (BigUint::from(1_u8) << (context.session_encr_key.len() * 8));
| -- consider giving iv
a type
477 | let iv = &iv.to_bytes_be()[1..context.session_encr_key.len() + 1];
| ^^ cannot infer type
|
= note: type must be known at this point
error[E0282]: type annotations needed
--> /home/donpimpin/.cargo/git/checkouts/rtp-23e67d7854ed482f/6c0223d/src/rfc3711.rs:511:19
|
510 | let iv = iv ^ (BigUint::from(1_u8) << (context.session_encr_key.len() * 8));
| -- consider giving iv
a type
511 | let iv = &iv.to_bytes_be()[1..context.session_encr_key.len() + 1];
| ^^ cannot infer type
|
= note: type must be known at this point
error: aborting due to 2 previous errors
For more information about this error, try rustc --explain E0282
.
error: could not compile rtp
To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: build failed
Have followed every installation step.
I am getting this as well; this is not an issue with this software, it's a rust bug: https://github.com/rust-lang/rust/issues/81317
It appears you need to use cargo no later than 1.48.
The fix is to run this:
rustup default 1.48.0
Then build.
This appears to be a duplicate of #22
Skgland's rtp fork has a fix for this. Change this line to cargo.toml:
rtp = { git = "https://github.com/Skgland/rtp", rev = "83eb4dd", features = ["rfc5764-openssl"] }
Skgland's rtp fork has a fix for this. Change this line to cargo.toml:
rtp = { git = "https://github.com/Skgland/rtp", rev = "83eb4dd", features = ["rfc5764-openssl"] }
This worked like a charm