Update Dependencies
This commit is contained in:
+3
-2
@@ -19,8 +19,6 @@ signal-hook = "0.3.17"
|
||||
[target.'cfg(target_os = "windows")'.dependencies]
|
||||
winapi = { version = "0.3.9", features = ["handleapi", "processthreadsapi", "winnt", "securitybaseapi", "impl-default"] }
|
||||
|
||||
[target.'cfg(windows)'.build-dependencies]
|
||||
thunk-rs = { version = "0.3.3", features = ["win7"] }
|
||||
|
||||
[features]
|
||||
default = ["default-feature"]
|
||||
@@ -48,3 +46,6 @@ file_config = ["common/file_config"]
|
||||
[build-dependencies]
|
||||
rand = "0.8.5"
|
||||
chrono = "0.4.23"
|
||||
|
||||
[target.'cfg(windows)'.build-dependencies]
|
||||
thunk-rs = { version = "0.3.3", features = ["win7"] }
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
fn main() {
|
||||
// 配置 thunk-rs 来链接 Windows 7 兼容库,并自动设置链接参数
|
||||
#[cfg(target_os = "windows")]
|
||||
thunk::thunk();
|
||||
}
|
||||
Reference in New Issue
Block a user