-
Notifications
You must be signed in to change notification settings - Fork 12
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
build error #28
Comments
Hi @Archieeeeee - this library will likely not work on Windows as the underlying library (pnet) doesn't either last I knew. |
Hey, just a heads up, you can (now) run this on Windows. All you have to do is:
Cargo.toml [target.'cfg(windows)'.build-dependencies]
winres = "0.1.12" # or whatever is the latest version build.rs fn main() {
// Tell windows that executable requires admin privileges.
#[cfg(target_os = "windows")]
{
let mut res = winres::WindowsResource::new();
res.set_manifest(
r#"
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
"#,
);
if let Err(error) = res.compile() {
eprint!("{}", error);
std::process::exit(1);
}
}
} PS: Make sure that you're running |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorry , I find this by searching maybe that is the cause, so I have to provide pcap library?
The text was updated successfully, but these errors were encountered: