Closed AlfredoCubitos closed 9 months ago
Whilst it's recommended to combine the OpenSSL SHA1 backend and the native-tls
features on Linux (as OpenSSL is used as the TLS backend on Linux when enabling the native-tls
feature), it's not required. In your case, try appending openssl
to the features list.
thank you, this works fine. The sha1 error disappeared with the openssl
feature :-)
But there are two remaining errors:
error: Using the `client` feature requires enabling a random number generator implementation via one of the following features: `fastrand`, `getrandom` or `rand`.
and
unresolved import `imp`
pub use imp::{get_key, get_mask};
| ^^^ use of undeclared crate or module `imp`
Any idea to solve this?
Read the error message again. The second error stems from the first one
I red this. As you can see in my toml I configured fastrand and it compiled fine. So I'm wondering why this error appears?
You need to add the fastrand
feature to tokio-websockets, not add fastrand
as a dependency.
ok, thank you! :-)
Hi,
I'm getting the following error:
error: client and server implementation require at least one SHA1 backend
error[E0432]: unresolved import crate::sha::digest
I'm getting this error although all requirements are satisfied (I think) All the modules before websockkets compiled well, there were no errors. Any ideas?
my cargo.toml: