Skip to content
New issue

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

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

Already on GitHub? # to your account

Add unix cfg condition #520

Closed
fewensa opened this issue Jul 13, 2021 · 0 comments · Fixed by #521
Closed

Add unix cfg condition #520

fewensa opened this issue Jul 13, 2021 · 0 comments · Fixed by #521

Comments

@fewensa
Copy link

fewensa commented Jul 13, 2021

use tokio::{
io::AsyncWriteExt,
net::UnixStream,
sync::{mpsc, oneshot},
};

There should be change to

use tokio::{
    io::AsyncWriteExt,
    sync::{mpsc, oneshot},
};
#[cfg(unix)]
use tokio::net::UnixStream;

This way help build on windows

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant