diff --git a/Cargo.lock b/Cargo.lock index c577b7b..6e6b17f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -113,9 +113,15 @@ name = "mmap-fixed-fixed" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0681853891801e4763dc252e843672faf32bcfee27a0aa3b19733902af450acc" +replace = "mmap-fixed-fixed 0.1.3 (git+https://github.com/redstrate/rust-mmap-fixed-fixed)" + +[[package]] +name = "mmap-fixed-fixed" +version = "0.1.3" +source = "git+https://github.com/redstrate/rust-mmap-fixed-fixed#f0f1520b6f4c9a6f054f3b59301cfafe138ce47c" dependencies = [ "libc", - "winapi", + "windows", ] [[package]] @@ -191,7 +197,7 @@ dependencies = [ "generic-array", "libc", "libudis86-sys", - "mmap-fixed-fixed", + "mmap-fixed-fixed 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "once_cell", "region", "slice-pool2", @@ -331,28 +337,6 @@ version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - [[package]] name = "windows" version = "0.61.1" diff --git a/Cargo.toml b/Cargo.toml index 09769b5..f3baff3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,3 +14,6 @@ windows = { version = "0.61", features = ["Win32_Foundation", "Win32_System_Syst serde = { version = "1.0", features = ["derive"], default-features = false } toml = { version = "0.8", features = ["parse"], default-features = false } retour = { version = "0.3", features = ["static-detour"], default-features = false } + +[replace] +"mmap-fixed-fixed:0.1.3" = { git = "https://github.com/redstrate/rust-mmap-fixed-fixed" } # my fork which removes the winapi dependency