From 9f73d130f954b14b6445d249a1b8c89faeaca9ec Mon Sep 17 00:00:00 2001 From: ko1N Date: Mon, 29 Nov 2021 00:05:22 +0100 Subject: [PATCH] Removed parts of the windows header cbindgen workaround --- leechcore-sys/build.rs | 47 ------------------------------------------ 1 file changed, 47 deletions(-) diff --git a/leechcore-sys/build.rs b/leechcore-sys/build.rs index dbc6240..dd4ba7f 100644 --- a/leechcore-sys/build.rs +++ b/leechcore-sys/build.rs @@ -114,54 +114,7 @@ fn main() { // see https://github.com/rust-lang/rust-bindgen/issues/1556 if target.contains("windows") { builder = builder - .blacklist_type("LPMONITORINFOEXA?W?") - .blacklist_type("LPTOP_LEVEL_EXCEPTION_FILTER") - .blacklist_type("MONITORINFOEXA?W?") - .blacklist_type("PEXCEPTION_FILTER") - .blacklist_type("PEXCEPTION_ROUTINE") - .blacklist_type("PSLIST_HEADER") - .blacklist_type("PTOP_LEVEL_EXCEPTION_FILTER") - .blacklist_type("PVECTORED_EXCEPTION_HANDLER") - .blacklist_type("_?L?P?CONTEXT") - .blacklist_type("_?L?P?EXCEPTION_POINTERS") - .blacklist_type("_?P?DISPATCHER_CONTEXT") - .blacklist_type("_?P?EXCEPTION_REGISTRATION_RECORD") .blacklist_type("_?P?IMAGE_TLS_DIRECTORY.*") - .blacklist_type("_?P?NT_TIB") - .blacklist_type("tagMONITORINFOEXA") - .blacklist_type("tagMONITORINFOEXW") - .blacklist_function("AddVectoredContinueHandler") - .blacklist_function("AddVectoredExceptionHandler") - .blacklist_function("CopyContext") - .blacklist_function("GetThreadContext") - .blacklist_function("GetXStateFeaturesMask") - .blacklist_function("InitializeContext") - .blacklist_function("InitializeContext2") - .blacklist_function("InitializeSListHead") - .blacklist_function("InterlockedFlushSList") - .blacklist_function("InterlockedPopEntrySList") - .blacklist_function("InterlockedPushEntrySList") - .blacklist_function("InterlockedPushListSListEx") - .blacklist_function("LocateXStateFeature") - .blacklist_function("QueryDepthSList") - .blacklist_function("RaiseFailFastException") - .blacklist_function("RtlCaptureContext") - .blacklist_function("RtlCaptureContext2") - .blacklist_function("RtlFirstEntrySList") - .blacklist_function("RtlInitializeSListHead") - .blacklist_function("RtlInterlockedFlushSList") - .blacklist_function("RtlInterlockedPopEntrySList") - .blacklist_function("RtlInterlockedPushEntrySList") - .blacklist_function("RtlInterlockedPushListSListEx") - .blacklist_function("RtlQueryDepthSList") - .blacklist_function("RtlRestoreContext") - .blacklist_function("RtlUnwindEx") - .blacklist_function("RtlVirtualUnwind") - .blacklist_function("SetThreadContext") - .blacklist_function("SetUnhandledExceptionFilter") - .blacklist_function("SetXStateFeaturesMask") - .blacklist_function("UnhandledExceptionFilter") - .blacklist_function("__C_specific_handler"); } let bindings = builder