Skip to content

Commit

Permalink
[rust] Force window-sys crate version in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Aug 12, 2024
1 parent f3444e7 commit a968a40
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 10 additions & 2 deletions rust/Cargo.Bazel.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "4ef6c22ec363acd77306d3758c75001ec6e6164f8f964457ff9af16470c5cf13",
"checksum": "d3b4f76b61f6e1c21a4bd8b7905b2b82a1dee313ae0632e04a1c1a7a2e49d414",
"crates": {
"addr2line 0.21.0": {
"name": "addr2line",
Expand Down Expand Up @@ -11951,7 +11951,14 @@
"target": "zip"
}
],
"selects": {}
"selects": {
"cfg(target_os = \"windows\")": [
{
"id": "windows-sys 0.59.0",
"target": "windows_sys"
}
]
}
},
"deps_dev": {
"common": [
Expand Down Expand Up @@ -19699,6 +19706,7 @@
"toml 0.8.19",
"walkdir 2.5.0",
"which 6.0.2",
"windows-sys 0.59.0",
"zip 2.1.6"
],
"direct_dev_deps": [
Expand Down
1 change: 1 addition & 0 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ anyhow = { version = "1.0.86", default-features = false, features = ["backtrace"
apple-flat-package = "0.18.0"
which = "6.0.2"

[target.'cfg(target_os = "windows")'.dependencies]
windows-sys = "0.59.0"

[dev-dependencies]
assert_cmd = "2.0.16"
rstest = "0.19.0"
Expand Down

0 comments on commit a968a40

Please sign in to comment.