Here's what the compiler has to say when it tries to compile daemonize:
Checking daemonize v0.4.1
Compiling syn v1.0.107
Checking parking_lot v0.12.1
error[E0433]: failed to resolve: could not find unix in os
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:58:14
|
58 | use std::os::unix::ffi::OsStringExt;
| ^^^^ could not find unix in os
error[E0433]: failed to resolve: could not find unix in os
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:59:14
|
59 | use std::os::unix::io::AsRawFd;
| ^^^^ could not find unix in os
error[E0432]: unresolved imports libc::fork, libc::ftruncate, libc::setgid, libc::setsid, libc::setuid, libc::umask, libc::LOCK_EX, libc::LOCK_NB
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:65:25
|
65 | c_int, close, dup2, fork, ftruncate, getpid, open, setgid, setsid, setuid, umask, write,
| ^^^^ ^^^^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^ no umask in the root
| | | | | |
| | | | | no setuid in the root
| | | | no setsid in the root
| | | no setgid in the root
| | no ftruncate in the root
| no fork in the root
66 | LOCK_EX, LOCK_NB,
| ^^^^^^^ ^^^^^^^ no LOCK_NB in the root
| |
| no LOCK_EX in the root
|
help: a similar name exists in the module
|
65 | c_int, close, dup2, fork, strncat, getpid, open, setgid, setsid, setuid, umask, write,
| ~~~~~~~
help: a similar name exists in the module
|
65 | c_int, close, dup2, fork, ftruncate, getpid, open, getpid, setsid, setuid, umask, write,
| ~~~~~~
help: a similar name exists in the module
|
65 | c_int, close, dup2, fork, ftruncate, getpid, open, setgid, getpid, setuid, umask, write,
| ~~~~~~
help: a similar name exists in the module
|
65 | c_int, close, dup2, fork, ftruncate, getpid, open, setgid, setsid, getpid, umask, write,
| ~~~~~~
error[E0432]: unresolved imports libc::gid_t, libc::mode_t, libc::uid_t
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:68:16
|
68 | pub use libc::{gid_t, mode_t, uid_t};
| ^^^^^ ^^^^^^ ^^^^^ no uid_t in the root
| | |
| | no mode_t in the root
| no gid_t in the root
error[E0412]: cannot find type uid_t in crate libc
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\ffi.rs:18:19
|
18 | pw_uid: libc::uid_t,
| ^^^^^ not found in libc
error[E0412]: cannot find type gid_t in crate libc
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\ffi.rs:19:19
|
19 | pw_gid: libc::gid_t,
| ^^^^^ not found in libc
error[E0412]: cannot find type gid_t in crate libc
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\ffi.rs:30:19
|
30 | gr_gid: libc::gid_t,
| ^^^^^ not found in libc
error[E0412]: cannot find type gid_t in crate libc
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\ffi.rs:41:63
|
41 | pub unsafe fn get_gid_by_name(name: &CString) -> Optionlibc::gid_t {
| ^^^^^ not found in libc
error[E0412]: cannot find type uid_t in crate libc
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\ffi.rs:51:63
|
51 | pub unsafe fn get_uid_by_name(name: &CString) -> Optionlibc::uid_t {
| ^^^^^ not found in libc
error[E0425]: cannot find value STDIN_FILENO in crate libc
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:466:25
|
466 | process_stdio(libc::STDIN_FILENO, stdin)?;
| ^^^^^^^^^^^^ not found in libc
error[E0425]: cannot find value STDOUT_FILENO in crate libc
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:467:25
|
467 | process_stdio(libc::STDOUT_FILENO, stdout)?;
| ^^^^^^^^^^^^^ not found in libc
error[E0425]: cannot find value STDERR_FILENO in crate libc
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:468:25
|
468 | process_stdio(libc::STDERR_FILENO, stderr)?;
| ^^^^^^^^^^^^^ not found in libc
error[E0425]: cannot find function chown in crate libc
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:527:15
|
527 | libc::chown(path_c.as_ptr(), uid, gid),
| ^^^^^ not found in libc
error[E0283]: type annotations needed: cannot satisfy User: From<&'a str>
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:177:10
|
177 | impl<'a> From<&'a str> for User {
| ^^^^^^^^^^^^^
|
note: multiple impls satisfying User: From<&'a str> found
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:177:1
|
177 | impl<'a> From<&'a str> for User {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
183 | impl From<uid_t> for User {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0283]: type annotations needed: cannot satisfy Group: From<&'a str>
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:196:10
|
196 | impl<'a> From<&'a str> for Group {
| ^^^^^^^^^^^^^
|
note: multiple impls satisfying Group: From<&'a str> found
--> C:\Users\hdpre.cargo\registry\src\github.com-1ecc6299db9ec823\daemonize-0.4.1\src\lib.rs:196:1
|
196 | impl<'a> From<&'a str> for Group {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
202 | impl From<gid_t> for Group {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
Some errors have detailed explanations: E0283, E0412, E0425, E0432, E0433.
For more information about an error, try rustc --explain E0283.
error: could not compile daemonize due to 15 previous errors
warning: build failed, waiting for other jobs to finish...