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
Compiling sysctl v0.5.5
error[E0433]: failed to resolve: maybe a missing crate `sys`?
Error: --> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\sysctl-0.5.5\src\lib.rs:77:9
|
77 | pub use sys::ctl::*;
| ^^^ maybe a missing crate `sys`?
|
= help: consider adding `extern crate sys` to use the `sys` crate
error[E0433]: failed to resolve: maybe a missing crate `sys`?
Error: --> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\sysctl-0.5.5\src\lib.rs:78:9
|
78 | pub use sys::ctl_iter::*;
| ^^^ maybe a missing crate `sys`?
|
= help: consider adding `extern crate sys` to use the `sys` crate
error[E0432]: unresolved imports `sys::ctl::*`, `sys::ctl_iter::*`
Error: --> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\sysctl-0.5.5\src\lib.rs:77:9
|
77 | pub use sys::ctl::*;
| ^^^^^^^^^^^
78 | pub use sys::ctl_iter::*;
| ^^^^^^^^^^^^^^^^
Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `sysctl` (lib) due to 3 previous errors
It's seems a bug of Cargo, but it has not been solved for a long time. rust-lang/cargo#10801
I think we should add some platform-specific conditional compilation before imports for workaround, like:
I know this package cannot support Windows. So I require it in
Cargo.toml
by:I think it's follow The Cargo Book.
But when I build on Windows, I got this error:
It's seems a bug of Cargo, but it has not been solved for a long time.
rust-lang/cargo#10801
I think we should add some platform-specific conditional compilation before imports for workaround, like:
The text was updated successfully, but these errors were encountered: