From a040f3cdd48ebf4333a0b3d84df8196da3e237f5 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 29 Aug 2023 15:57:24 -0700 Subject: Re-buckify with winapi-x86_64-pc-windows-gnu dependency https://github.com/facebookincubator/reindeer/commit/f5fcc27a69d73883240ff0b262ccfffeafea5dec --- third-party/BUCK | 22 ++++++++++++++++++++++ .../winapi-x86_64-pc-windows-gnu/fixups.toml | 1 + 2 files changed, 23 insertions(+) create mode 100644 third-party/fixups/winapi-x86_64-pc-windows-gnu/fixups.toml (limited to 'third-party') diff --git a/third-party/BUCK b/third-party/BUCK index 1208987e..26832b39 100644 --- a/third-party/BUCK +++ b/third-party/BUCK @@ -487,6 +487,11 @@ cargo.rust_library( "winerror", "winnt", ], + platform = { + "windows-gnu": dict( + deps = [":winapi-x86_64-pc-windows-gnu-0.4.0"], + ), + }, rustc_flags = ["@$(location :winapi-0.3.9-build-script-run[rustc_flags])"], visibility = [], ) @@ -555,3 +560,20 @@ cargo.rust_library( }, visibility = [], ) + +http_archive( + name = "winapi-x86_64-pc-windows-gnu-0.4.0.crate", + sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", + strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", + urls = ["https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"], + visibility = [], +) + +cargo.rust_library( + name = "winapi-x86_64-pc-windows-gnu-0.4.0", + srcs = [":winapi-x86_64-pc-windows-gnu-0.4.0.crate"], + crate = "winapi_x86_64_pc_windows_gnu", + crate_root = "winapi-x86_64-pc-windows-gnu-0.4.0.crate/src/lib.rs", + edition = "2015", + visibility = [], +) diff --git a/third-party/fixups/winapi-x86_64-pc-windows-gnu/fixups.toml b/third-party/fixups/winapi-x86_64-pc-windows-gnu/fixups.toml new file mode 100644 index 00000000..db40d72c --- /dev/null +++ b/third-party/fixups/winapi-x86_64-pc-windows-gnu/fixups.toml @@ -0,0 +1 @@ +buildscript = [] -- cgit v1.2.3