Windows Support Not Implemented
mikart143 opened this issue · 4 comments
mikart143 commented
Hello!
During building the git/crates.io version of tmq I occured an error:
Compiling tmq v0.2.1 (https://github.com/cetra3/tmq#455d9254)
error[E0432]: unresolved import `mio::unix`
--> C:\Users\mikar\.cargo\git\checkouts\tmq-34da698a4e28e3cb\455d925\src\socket.rs:3:11
|
3 | use mio::{unix::EventedFd, Evented, Poll, PollOpt, Ready, Token};
| ^^^^ could not find `unix` in `mio`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0432`.
error: could not compile `tmq`.
My platfrom is Windows with msvc toolchain.
I did not found anywhere that tmq is not supported on Windows. How can I ommit this ?
cetra3 commented
Yeah at the moment support for windows is not great. We're basically using the epoll
system to register events to listen to which isn't on windows. There is talk of using wepoll in some way to assist with this. I'm not sure how widespread support is.
The main problem is the windows API is fairly different for registering events. I'd love it if someone could take the reigns and implement it, but it would basically need to be a windows specific write for socket.rs
mikart143 commented
Thanks for the info !