From 9d08f89dde52ce7ff253162c8cc776cc9ced6f7b Mon Sep 17 00:00:00 2001 From: uncor3 Date: Sat, 4 Apr 2026 19:18:06 +0300 Subject: [PATCH] fix Windows build --- src/iDescriptor.h | 8 ++++++++ src/rust/Cargo.lock | 1 + src/rust/Cargo.toml | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/iDescriptor.h b/src/iDescriptor.h index 1385290..1d40144 100644 --- a/src/iDescriptor.h +++ b/src/iDescriptor.h @@ -18,6 +18,14 @@ */ #pragma once +/* required for mingw64 */ +#ifdef WIN32 +#include +using u_int8_t = uint8_t; +using u_int16_t = uint16_t; +using u_int32_t = uint32_t; +using u_int64_t = uint64_t; +#endif #include #include #include diff --git a/src/rust/Cargo.lock b/src/rust/Cargo.lock index ffd03bf..799e6b4 100644 --- a/src/rust/Cargo.lock +++ b/src/rust/Cargo.lock @@ -1208,6 +1208,7 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1f111c8c41e7c61a49cd34e44c7619462967221a6443b0ec299e0ac30cfb9b1" dependencies = [ + "cc", "pkg-config", "vcpkg", ] diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml index b32f8c0..9546ad5 100644 --- a/src/rust/Cargo.toml +++ b/src/rust/Cargo.toml @@ -22,7 +22,7 @@ once_cell = "1.21.4" regex = "1.12.3" urlencoding = "2.1.3" serde_json = "1.0.149" -rusqlite = "0.39.0" +rusqlite = { version = "0.39.0", features = ["bundled"] } [build-dependencies]