add thunk-rs to support win7 (#812)

* add thunk-rs to support win7
---------

Co-authored-by: loecomm <loecom@qq.com>
This commit is contained in:
loecom
2025-04-25 22:27:36 +08:00
committed by GitHub
parent 7e3819be86
commit c5580feb64
13 changed files with 67 additions and 7 deletions

7
easytier-web/build.rs Normal file
View File

@@ -0,0 +1,7 @@
fn main() {
// enable thunk-rs when target os is windows and arch is x86_64 or i686
#[cfg(target_os = "windows")]
if !std::env::var("TARGET").unwrap_or_default().contains("aarch64"){
thunk::thunk();
}
}