Skip to content

Commit b1dc58d

Browse files
committed
Rust for Windows 0.60対応
1 parent f85219d commit b1dc58d

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ license = "Apache-2.0"
1212

1313
[workspace.dependencies]
1414
anyhow = "1.0"
15-
windows = { version = "0.58", features = [
16-
"implement",
15+
windows = { version = "^0.60.0", features = [
1716
"Win32_Foundation",
1817
"Win32_System_Com",
1918
"Win32_System_Ole",
2019
"Win32_System_Variant"
2120
] }
22-
windows-core = "0.58"
23-
windows-bindgen = "0.58"
21+
windows-core = "^0.60.0"
22+
windows-bindgen = "^0.60.0"

crates/cevio-sys/.metadata/generate.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project Sdk="Microsoft.Windows.WinmdGenerator/0.61.15-preview">
2+
<Project Sdk="Microsoft.Windows.WinmdGenerator/0.63.31-preview">
33
<PropertyGroup Label="Globals">
44
<OutputWinmd>../.windows/winmd/CeVIO.Talk.RemoteService2.winmd</OutputWinmd>
55
<WinmdVersion>255.255.255.255</WinmdVersion>
0 Bytes
Binary file not shown.

crates/cevio-sys/build.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@ fn main() {
33
println!("cargo:rerun-if-changed=build.rs");
44

55
windows_bindgen::bindgen([
6+
"--in",
7+
"default",
68
"--in",
79
".windows/winmd/CeVIO.Talk.RemoteService2.winmd",
810
"--out",
911
"src/bindings.rs",
1012
"--filter",
1113
"CeVIO.Talk.RemoteService2",
12-
"--config",
13-
"implement",
14-
"--config",
15-
"vtbl",
16-
])
17-
.unwrap();
14+
"--flat",
15+
"--reference",
16+
"windows,skip-root,Windows.Win32.System.Com",
17+
"--reference",
18+
"windows,skip-root,Windows.Win32.Foundation",
19+
]);
1820
}

crates/cevio-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pub use bindings::Talk::RemoteService2::{
1+
pub use bindings::{
22
IPhonemeData2, IPhonemeDataArray2, IServiceControl2, IServiceControl2V40,
33
IServiceControl2V40Part, ISpeakingState2, IStringArray2, ITalker2, ITalker2V40,
44
ITalker2V40Part, ITalkerComponent2, ITalkerComponentArray2, PhonemeData2, PhonemeDataArray2,

crates/cevio/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ default = []
1010

1111
[dependencies]
1212
anyhow = { workspace = true }
13-
derive_builder = "0.20.0"
13+
derive_builder = "0.20.2"
1414
windows = { workspace = true }
15-
windows-core = { workspace = true }
1615

1716
cevio-sys = { path = "../cevio-sys" }

0 commit comments

Comments
 (0)