You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried compiling showcase-dl on Windows. Yes, I read that it might fail to compile - which it did. I received the error "could not find sys in nix".
After a bit of tinkering (not high level, since this is my first time using Rust), I managed to resolve this issue by adding "#[cfg(unix)]" in several places. I thought I might share this with you - if it does not break the code in Linux or other systems, this fix might be included to enable Windows compiling per se.
I included this small piece of code before three lines of
showcase-dl\src\state\video.rs
Lines 7 and 8 (new):
#[cfg(unix)]
use nix::sys::signal::{self, Signal};
#[cfg(unix)]
use nix::unistd::Pid;
Hello :-)
I tried compiling showcase-dl on Windows. Yes, I read that it might fail to compile - which it did. I received the error "could not find
sys
innix
".After a bit of tinkering (not high level, since this is my first time using Rust), I managed to resolve this issue by adding "#[cfg(unix)]" in several places. I thought I might share this with you - if it does not break the code in Linux or other systems, this fix might be included to enable Windows compiling per se.
I included this small piece of code before three lines of
showcase-dl\src\state\video.rs
Lines 7 and 8 (new):
Line 398 (new)
Lastly, thanks for sharing your work!
The text was updated successfully, but these errors were encountered: