Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Support Not Implemented #17

Open
mikart143 opened this issue Nov 11, 2020 · 4 comments
Open

Windows Support Not Implemented #17

mikart143 opened this issue Nov 11, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@mikart143
Copy link

mikart143 commented Nov 11, 2020

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
Copy link
Owner

cetra3 commented Nov 11, 2020

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

@cetra3 cetra3 added the enhancement New feature or request label Nov 11, 2020
@mikart143
Copy link
Author

Thanks for the info !

@cetra3 cetra3 changed the title Using vendored feature on windows Windows Support Not Implemented Feb 1, 2021
@bicarlsen
Copy link

Was thinking of giving this a go. Would tokio's NamedPipes be a valid solution here?

@bicarlsen
Copy link

Gave this a first attempt. Would love some feedback if anybody has some. Some of the tests fail, mostly with access denied style errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants