Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jul 12, 2023
1 parent 98b8e0b commit bb3fac1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ pub fn copy_dir(src: &Path, dst: &Path) {
fn main() {
#[cfg(windows)]
{
// This is slightly terrible:
// We want to bundle WinDivert with all Windows wheels, so we dynamically copy it into tree.
// Alternatively we could include_bytes!() it, but then we would need to extract to a temporary
// directory during execution, which is even worse.
// This is slightly terrible:
// We want to bundle WinDivert with all Windows wheels, so we dynamically copy it into tree.
// Alternatively we could include_bytes!() it, but then we would need to extract to a temporary
// directory during execution, which is even worse.

// Ideally we should also do https://github.com/rust-lang/cargo/issues/9096 here,
// but for now we want to stay on stable Rust.
// Ideally we should also do https://github.com/rust-lang/cargo/issues/9096 here,
// but for now we want to stay on stable Rust.

// xxx: untested
println!("cargo:rerun-if-changed=../target/debug/windows-redirector.exe");
println!("cargo:rerun-if-changed=../target/release/windows-redirector.exe");
println!("cargo:rerun-if-changed=../windows-redirector/windivert/");
// xxx: untested
println!("cargo:rerun-if-changed=../target/debug/windows-redirector.exe");
println!("cargo:rerun-if-changed=../target/release/windows-redirector.exe");
println!("cargo:rerun-if-changed=../windows-redirector/windivert/");

let windivert_files = ["WinDivert.dll", "WinDivert.lib", "WinDivert64.sys"];
if cfg!(debug_assertions) {
Expand Down

0 comments on commit bb3fac1

Please sign in to comment.