You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/libs/sys/readme.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,16 @@ Start by adding the following to your Cargo.toml file:
11
11
12
12
```toml
13
13
[dependencies.windows-sys]
14
-
version = "0.61"
14
+
version = ">=0.59, <=0.61"
15
15
features = [
16
16
"Win32_Security",
17
17
"Win32_System_Threading",
18
18
"Win32_UI_WindowsAndMessaging",
19
19
]
20
20
```
21
21
22
+
Using a range instead of the [default Caret requirements](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#caret-requirements) helps avoid duplicate versions in downstream graphs and improves resolver flexibility.
23
+
22
24
Make use of any Windows APIs as needed:
23
25
24
26
```rust,no_run
@@ -36,3 +38,5 @@ unsafe {
36
38
MessageBoxW(0 as _, w!("Wide"), w!("Caption"), MB_OK);
Copy file name to clipboardExpand all lines: crates/libs/windows/readme.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Start by adding the following to your Cargo.toml file:
11
11
12
12
```toml
13
13
[dependencies.windows]
14
-
version = "0.62"
14
+
version = ">=0.59, <=0.62"
15
15
features = [
16
16
"Data_Xml_Dom",
17
17
"Win32_Security",
@@ -20,6 +20,8 @@ features = [
20
20
]
21
21
```
22
22
23
+
Using a range instead of the [default Caret requirements](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#caret-requirements) helps avoid duplicate versions in downstream graphs and improves resolver flexibility.
0 commit comments