-
Notifications
You must be signed in to change notification settings - Fork 123
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
error[E0432]: unresolved imports nix::sys
, nix::unistd
#477
Comments
rustc 1.82.0 (f6e511eec 2024-10-15) |
Besides, ".\src\cwe_checker_lib\Cargo.toml", nix version should change to 0.29.0 nix = "0.29.0" |
rustc --explain E0432 Erroneous code example:
In Rust 2015, paths in In Rust 2018 or later, paths in Also verify that you didn't misspell the import name and that the import exists
If you tried to use a module from an external crate and are using Rust 2015,
Since Rust 2018 the
|
Can cwe-checker be compiled in windows ? |
Since it does not support compile in windows: |
I annotated these lines of code, and got the executable file: // use nix::{sys::stat, unistd}; |
But report a new error when running: PS G:\cwe_checker-master> .\target\release\cwe_checker.exe G:\openssl Caused by: |
Hi, the |
I finally run cwe_checker successfully in windows... I create a FIFO use this code:
It seems to have no asynchronous functionality. So I exchange the order: firstly call the command and then read the result file:
here are the output:
|
https://users.rust-lang.org/t/how-to-create-a-fifo-in-windows/121702
I try to install locally, run in windows:
error:
Updating crates.io index
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Compiling libc v0.2.165
Compiling cfg_aliases v0.2.1
Compiling bitflags v2.4.2
Compiling nix v0.29.0
Compiling cwe_checker_lib v0.9.0
error[E0432]: unresolved imports
nix::sys
,nix::unistd
--> src\cwe_checker_lib\src\utils\ghidra.rs:13:11
|
13 | use nix::{sys::stat, unistd};
| ^^^ ^^^^^^ no
unistd
in the root| |
| could not find
sys
innix
For more information about this error, try
rustc --explain E0432
.error: could not compile
cwe_checker_lib
(lib) due to 1 previous errorerror: failed to compile `cwe_checker v0.9.0
The text was updated successfully, but these errors were encountered: