Skip to content

Commit 3244710

Browse files
committed
Add api-4-4 feature
Update to gdextension-api v0.2.2.
1 parent d1a25b3 commit 3244710

File tree

7 files changed

+14
-3
lines changed

7 files changed

+14
-3
lines changed

godot-bindings/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ api-4-2 = []
2828
api-4-2-1 = []
2929
api-4-2-2 = []
3030
api-4-3 = []
31+
api-4-4 = []
3132
# ]]
3233

3334
default = []
@@ -36,7 +37,7 @@ api-custom = ["dep:bindgen", "dep:regex", "dep:which"]
3637
api-custom-extheader = []
3738

3839
[dependencies]
39-
gdextension-api = { version = "0.2.1", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "releases" }
40+
gdextension-api = { version = "0.2.2", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "releases" }
4041

4142
# Do not use bindgen 0.69, it contains regression that forces recompilation of code.
4243
bindgen = { optional = true, version = "0.68", default-features = false, features = ["runtime"] }

godot-bindings/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ fn main() {
2525
if cfg!(feature = "api-4-2-1") { count += 1; }
2626
if cfg!(feature = "api-4-2-2") { count += 1; }
2727
if cfg!(feature = "api-4-3") { count += 1; }
28+
if cfg!(feature = "api-4-4") { count += 1; }
2829
// ]]
2930

3031
assert!(count <= 1, "ERROR: at most one `api-*` feature can be enabled");

godot-bindings/src/import.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pub const ALL_VERSIONS: &[(u8, u8, u8)] = &[
2525
(4, 2, 2),
2626
(4, 3, 0),
2727
(4, 4, 0),
28+
(4, 5, 0),
2829
// ]]
2930
];
3031

@@ -57,6 +58,9 @@ pub use gdextension_api::version_4_2_2 as prebuilt;
5758
#[cfg(feature = "api-4-3")]
5859
pub use gdextension_api::version_4_3 as prebuilt;
5960

61+
#[cfg(feature = "api-4-4")]
62+
pub use gdextension_api::version_4_4 as prebuilt;
63+
6064
// ]]
6165

6266
// If none of the api-* features are provided, use default prebuilt version (typically latest Godot stable release).
@@ -75,12 +79,13 @@ pub use gdextension_api::version_4_3 as prebuilt;
7579
feature = "api-4-2-1",
7680
feature = "api-4-2-2",
7781
feature = "api-4-3",
82+
feature = "api-4-4",
7883
feature = "api-custom",
7984
)))]
8085
// ]]
8186

8287
// [version-sync] [[
8388
// [include] current.minor
8489
// [line] pub use gdextension_api::version_$snakeVersion as prebuilt;
85-
pub use gdextension_api::version_4_3 as prebuilt;
90+
pub use gdextension_api::version_4_4 as prebuilt;
8691
// ]]

godot-core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ api-4-2 = ["godot-ffi/api-4-2"]
3838
api-4-2-1 = ["godot-ffi/api-4-2-1"]
3939
api-4-2-2 = ["godot-ffi/api-4-2-2"]
4040
api-4-3 = ["godot-ffi/api-4-3"]
41+
api-4-4 = ["godot-ffi/api-4-4"]
4142
# ]]
4243

4344
[dependencies]

godot-ffi/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ api-4-2 = ["godot-bindings/api-4-2"]
3030
api-4-2-1 = ["godot-bindings/api-4-2-1"]
3131
api-4-2-2 = ["godot-bindings/api-4-2-2"]
3232
api-4-3 = ["godot-bindings/api-4-3"]
33+
api-4-4 = ["godot-bindings/api-4-4"]
3334
# ]]
3435

3536
# TODO: get rid of paste and gensym, they are trivially implementable with proc-macros. Update cargo-deny.

godot/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ api-4-2 = ["godot-core/api-4-2"]
3838
api-4-2-1 = ["godot-core/api-4-2-1"]
3939
api-4-2-2 = ["godot-core/api-4-2-2"]
4040
api-4-3 = ["godot-core/api-4-3"]
41+
api-4-4 = ["godot-core/api-4-4"]
4142
# ]]
4243

4344
default = ["__codegen-full"]

itest/repo-tweak/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ pub const GODOT_LATEST_PATCH_VERSIONS: &[&str] = &[
2121
"4.1.4",
2222
"4.2.2",
2323
"4.3.0",
24-
"4.4.0", // Upcoming.
24+
"4.4.0",
25+
"4.5.0", // Upcoming.
2526
];
2627

2728
// ----------------------------------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)