lemunozm / message-io

Fast and easy-to-use event-driven network library.
Apache License 2.0
1.11k stars 74 forks source link

why do not support for x84_64-unknown-linux-musl? #101

Closed reison1218 closed 3 years ago

reison1218 commented 3 years ago

i really like this crate,it's easy to understand and use,but why do not support for x84_64-unknown-linux-musl? i mean,the cross compile for compile x84_64-unknown-linux-musl is easy than x84_64-unknown-linux-gnu right? i can not find a good way to easy cross compile to x84_64-unknown-linux-gnu. if u know,could u pls tell me?oh,by the way,i am coding on mac.

lemunozm commented 3 years ago

Hi @reison1218, I'm glad you find message-io easy to use. It's one of the main motivations :)

What do you mean with "not support for x84_64-unknown-linux-musl"? It should compile. If you get an OpenSSL error it's due because you need to point to the correct OpenSSL for the target you are cross-compiling. OpenSSL is used only by WebSocket, if you don't use Websocket you can avoid compiling it using:

cargo build --target x86_64-unknown-linux-musl --no-default-features --features "tcp udp"

Is this your problem?

reison1218 commented 3 years ago

oh,as u say!it's work,thank u base on it,i can try more this crate now.thanks for your job!