diff --git a/crates/libs/core/Cargo.toml b/crates/libs/core/Cargo.toml index 559c250f29..52cb1fdf2a 100644 --- a/crates/libs/core/Cargo.toml +++ b/crates/libs/core/Cargo.toml @@ -26,7 +26,7 @@ version = "0.1.1" path = "../result" [dependencies.windows-strings] -version = "0.0.0" +version = "0.1.0" path = "../strings" [dependencies] diff --git a/crates/libs/core/readme.md b/crates/libs/core/readme.md index 5cde16742c..e65156e040 100644 --- a/crates/libs/core/readme.md +++ b/crates/libs/core/readme.md @@ -81,8 +81,8 @@ fn main() { WaitForSingleObject(event, 0); CloseHandle(event); - MessageBoxA(0, s!("Ansi"), s!("Caption"), MB_OK); - MessageBoxW(0, w!("Wide"), w!("Caption"), MB_OK); + MessageBoxA(0 as _, s!("Ansi"), s!("Caption"), MB_OK); + MessageBoxW(0 as _, w!("Wide"), w!("Caption"), MB_OK); } } ``` diff --git a/crates/libs/sys/readme.md b/crates/libs/sys/readme.md index 92da0a10b7..f86fe68728 100644 --- a/crates/libs/sys/readme.md +++ b/crates/libs/sys/readme.md @@ -82,8 +82,8 @@ fn main() { WaitForSingleObject(event, 0); CloseHandle(event); - MessageBoxA(0, s!("Ansi"), s!("Caption"), MB_OK); - MessageBoxW(0, w!("Wide"), w!("Caption"), MB_OK); + MessageBoxA(0 as _, s!("Ansi"), s!("Caption"), MB_OK); + MessageBoxW(0 as _, w!("Wide"), w!("Caption"), MB_OK); } } ``` diff --git a/crates/libs/windows/readme.md b/crates/libs/windows/readme.md index 92da0a10b7..f86fe68728 100644 --- a/crates/libs/windows/readme.md +++ b/crates/libs/windows/readme.md @@ -82,8 +82,8 @@ fn main() { WaitForSingleObject(event, 0); CloseHandle(event); - MessageBoxA(0, s!("Ansi"), s!("Caption"), MB_OK); - MessageBoxW(0, w!("Wide"), w!("Caption"), MB_OK); + MessageBoxA(0 as _, s!("Ansi"), s!("Caption"), MB_OK); + MessageBoxW(0 as _, w!("Wide"), w!("Caption"), MB_OK); } } ``` diff --git a/crates/tests/readme/Cargo.toml b/crates/tests/readme/Cargo.toml index c11d69d521..c450375600 100644 --- a/crates/tests/readme/Cargo.toml +++ b/crates/tests/readme/Cargo.toml @@ -4,10 +4,6 @@ version = "0.0.0" edition = "2021" publish = false -[lib] -doc = false -doctest = false - [dependencies.windows] path = "../../libs/windows" features = [ @@ -42,5 +38,8 @@ path = "../../libs/registry" [dev-dependencies.windows-version] path = "../../libs/version" +[dev-dependencies.windows-strings] +path = "../../libs/strings" + [dev-dependencies.cppwinrt] path = "../../libs/cppwinrt" diff --git a/crates/tests/readme/src/lib.rs b/crates/tests/readme/src/lib.rs index 6a1bd9cb79..33a0f04877 100644 --- a/crates/tests/readme/src/lib.rs +++ b/crates/tests/readme/src/lib.rs @@ -1,9 +1,10 @@ #![doc = include_str!("../../../../crates/libs/core/readme.md")] +#![doc = include_str!("../../../../crates/libs/cppwinrt/readme.md")] #![doc = include_str!("../../../../crates/libs/metadata/readme.md")] #![doc = include_str!("../../../../crates/libs/registry/readme.md")] #![doc = include_str!("../../../../crates/libs/result/readme.md")] +#![doc = include_str!("../../../../crates/libs/strings/readme.md")] #![doc = include_str!("../../../../crates/libs/sys/readme.md")] #![doc = include_str!("../../../../crates/libs/targets/readme.md")] #![doc = include_str!("../../../../crates/libs/version/readme.md")] #![doc = include_str!("../../../../crates/libs/windows/readme.md")] -#![doc = include_str!("../../../../crates/libs/cppwinrt/readme.md")]