Skip to content

Commit 5f42a21

Browse files
committed
Rename prebuilt dependency
1 parent 3b0f4b5 commit 5f42a21

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

godot-bindings/Cargo.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ api-custom-extheader = []
4343

4444
[dependencies]
4545
# [version-sync] [[
46-
# [line] prebuilt-$kebabVersion = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "$dotVersion" }
47-
prebuilt-4-0 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.0" }
48-
prebuilt-4-0-1 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.0.1" }
49-
prebuilt-4-0-2 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.0.2" }
50-
prebuilt-4-0-3 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.0.3" }
51-
prebuilt-4-0-4 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.0.4" }
52-
prebuilt-4-1 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.1" }
53-
prebuilt-4-1-1 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.1.1" }
54-
prebuilt-4-1-2 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.1.2" }
55-
prebuilt-4-1-3 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.1.3" }
56-
prebuilt-4-1-4 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.1.4" }
57-
prebuilt-4-2 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.2" }
58-
prebuilt-4-2-1 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.2.1" }
59-
prebuilt-4-2-2 = { optional = true, package = "godot4-prebuilt", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.2.2" }
46+
# [line] prebuilt-$kebabVersion = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "$dotVersion" }
47+
prebuilt-4-0 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.0" }
48+
prebuilt-4-0-1 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.0.1" }
49+
prebuilt-4-0-2 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.0.2" }
50+
prebuilt-4-0-3 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.0.3" }
51+
prebuilt-4-0-4 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.0.4" }
52+
prebuilt-4-1 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.1" }
53+
prebuilt-4-1-1 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.1.1" }
54+
prebuilt-4-1-2 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.1.2" }
55+
prebuilt-4-1-3 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.1.3" }
56+
prebuilt-4-1-4 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.1.4" }
57+
prebuilt-4-2 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.2" }
58+
prebuilt-4-2-1 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.2.1" }
59+
prebuilt-4-2-2 = { optional = true, package = "gdextension-api", git = "https://github.com/godot-rust/godot4-prebuilt", branch = "4.2.2" }
6060
# ]]
6161

6262
# Do not use bindgen 0.69, it contains regression that forces recompilation of code.

godot-bindings/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,12 @@ mod depend_on_prebuilt {
102102
}
103103

104104
pub(crate) fn get_godot_version() -> GodotVersion {
105-
let version: Vec<&str> = prebuilt::GODOT_VERSION.split('.').collect::<Vec<_>>();
105+
let version: Vec<&str> = prebuilt::GODOT_VERSION_STRING
106+
.split('.')
107+
.collect::<Vec<_>>();
108+
106109
GodotVersion {
107-
full_string: prebuilt::GODOT_VERSION.into(),
110+
full_string: prebuilt::GODOT_VERSION_STRING.to_string(),
108111
major: version[0].parse().unwrap(),
109112
minor: version[1].parse().unwrap(),
110113
patch: version

0 commit comments

Comments
 (0)