Skip to content

Commit 8ac4fae

Browse files
bors[bot]chitoyuu
andauthored
Merge #1000
1000: Prepare 0.11.1 release r=chitoyuu a=chitoyuu ## Done - Fixed `Varargs::as_slice` / optional argument error reporting - Added CI checks for required error messages Close #967 ## Todo - Write changelogs Co-authored-by: Chitose Yuuzaki <chitoyuu@potatoes.gay>
2 parents 16e5847 + de27069 commit 8ac4fae

File tree

17 files changed

+306
-254
lines changed

17 files changed

+306
-254
lines changed

.github/composite/godot/action.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,27 @@ runs:
6262
cd test;
6363
mkdir -p ./project/lib;
6464
cp ../target/debug/libgdnative_test.so ./project/lib/;
65-
${GODOT_BIN} --path ./project/ > >(tee "${{ runner.temp }}/stdout.log");
66-
if grep -q "Leaked instance" "${{ runner.temp }}/stdout.log"; then
65+
${GODOT_BIN} --path ./project/ > >(tee "${{ runner.temp }}/stdout.log") 2> >(tee "${{ runner.temp }}/stderr.log");
66+
bash ../tools/check-test-output.sh "${{ runner.temp }}/stdout.log" "${{ runner.temp }}/stderr.log";
67+
if [[ $? -ne 0 ]]; then
6768
exit 1;
6869
fi;
69-
${GODOT_BIN} -e --path ./project/ --run-editor-tests > >(tee "${{ runner.temp }}/stdout.log");
70-
if grep -q "Leaked instance" "${{ runner.temp }}/stdout.log"; then
70+
${GODOT_BIN} -e --path ./project/ --run-editor-tests > >(tee "${{ runner.temp }}/stdout.log") 2> >(tee "${{ runner.temp }}/stderr.log");
71+
bash ../tools/check-test-output.sh "${{ runner.temp }}/stdout.log" "${{ runner.temp }}/stderr.log";
72+
if [[ $? -ne 0 ]]; then
7173
exit 1;
7274
fi;
7375
cargo build --features type-tag-fallback ${{ inputs.rust_extra_args }}
7476
mkdir -p ./project/lib;
7577
cp ../target/debug/libgdnative_test.so ./project/lib/;
76-
${GODOT_BIN} --path ./project/ > >(tee "${{ runner.temp }}/stdout.log");
77-
if grep -q "Leaked instance" "${{ runner.temp }}/stdout.log"; then
78+
${GODOT_BIN} --path ./project/ > >(tee "${{ runner.temp }}/stdout.log") 2> >(tee "${{ runner.temp }}/stderr.log");
79+
bash ../tools/check-test-output.sh "${{ runner.temp }}/stdout.log" "${{ runner.temp }}/stderr.log";
80+
if [[ $? -ne 0 ]]; then
7881
exit 1;
7982
fi;
80-
${GODOT_BIN} -e --path ./project/ --run-editor-tests > >(tee "${{ runner.temp }}/stdout.log");
81-
if grep -q "Leaked instance" "${{ runner.temp }}/stdout.log"; then
83+
${GODOT_BIN} -e --path ./project/ --run-editor-tests > >(tee "${{ runner.temp }}/stdout.log") 2> >(tee "${{ runner.temp }}/stderr.log");
84+
bash ../tools/check-test-output.sh "${{ runner.temp }}/stdout.log" "${{ runner.temp }}/stderr.log";
85+
if [[ $? -ne 0 ]]; then
8286
exit 1;
8387
fi;
8488
shell: bash

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,34 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.11.1] - 2023-01-06
9+
10+
This is a backwards-compatible release; thus no removals or breaking changes.
11+
12+
### Added
13+
14+
- `NativeClass` can now be derived for generic types. Additionally, `#[monomorphize]` can be used to name concrete monomorphizations. ([#983](https://github.com/godot-rust/gdnative/pull/983))
15+
- With the optional `inventory` feature enabled, `NativeClass`es and their `#[monomorphize]`d aliases can now be automatically registered on supported platforms. ([#999](https://github.com/godot-rust/gdnative/pull/999))
16+
- `#[methods]` now supports async-await coroutines. ([#975](https://github.com/godot-rust/gdnative/pull/975))
17+
- Mix-in impl blocks can now be created through `#[methods(mixin = "Name")]`. These blocks have a many-to-many relationship with `NativeClass`es, and can be generic, or trait implementations. ([#999](https://github.com/godot-rust/gdnative/pull/999))
18+
- Added a Third-Person-Shooter example. ([#977](https://github.com/godot-rust/gdnative/pull/977))
19+
- Variant derive macros now support stringly and numeric representations for fieldless enums. ([#964](https://github.com/godot-rust/gdnative/pull/964))
20+
- `FromVariant` can now be derived for uninhabitable enums. ([#962](https://github.com/godot-rust/gdnative/pull/962))
21+
- Dedicated accessor methods are now generated for indexed properties, such as `SpatialMaterial::albedo_texture`. ([#970](https://github.com/godot-rust/gdnative/pull/970))
22+
- Implemented additional geometric operations on `Transform3D`. ([#898](https://github.com/godot-rust/gdnative/pull/898))
23+
- Android targets are now supported on macOS running on Apple Silicon. ([#982](https://github.com/godot-rust/gdnative/pull/982))
24+
25+
### Changed
26+
27+
- Improved panic messages in init/terminate callbacks. ([#960](https://github.com/godot-rust/gdnative/pull/960))
28+
- `ptrcall`s are now opt-in, with the `ptrcall` feature flag. This improves binary compatibility in the default configuration. ([#973](https://github.com/godot-rust/gdnative/pull/973))
29+
30+
### Fixed
31+
32+
- Variant derive macros now work properly with generic types with bounds. ([#961](https://github.com/godot-rust/gdnative/pull/961))
33+
- `Transform::interpolate_with` now has behavior consistent with Godot 3 (spherical interpolation). ([#998](https://github.com/godot-rust/gdnative/pull/998))
34+
- The correct number of arguments are now reported when an invalid argument list is provided for a method with optional arguments. ([#1000](https://github.com/godot-rust/gdnative/pull/1000))
35+
836
## [0.11.0] - 2022-10-02
937

1038
### Changed

bindings-generator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ documentation = "https://docs.rs/crate/gdnative_bindings_generator"
66
repository = "https://github.com/godot-rust/godot-rust"
77
homepage = "https://godot-rust.github.io/"
88
license = "MIT"
9-
version = "0.11.0"
9+
version = "0.11.1"
1010
workspace = ".."
1111
edition = "2021"
1212
rust-version = "1.63"

gdnative-async/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Runtime async support for godot-rust."
55
documentation = "https://docs.rs/crate/gdnative-async"
66
repository = "https://github.com/godot-rust/godot-rust"
77
homepage = "https://godot-rust.github.io/"
8-
version = "0.11.0"
8+
version = "0.11.1"
99
license = "MIT"
1010
workspace = ".."
1111
edition = "2021"
@@ -14,9 +14,9 @@ rust-version = "1.63"
1414
[features]
1515

1616
[dependencies]
17-
gdnative-derive = { path = "../gdnative-derive", version = "=0.11.0" }
18-
gdnative-core = { path = "../gdnative-core", version = "=0.11.0" }
19-
gdnative-bindings = { path = "../gdnative-bindings", version = "=0.11.0" }
17+
gdnative-derive = { path = "../gdnative-derive", version = "=0.11.1" }
18+
gdnative-core = { path = "../gdnative-core", version = "=0.11.1" }
19+
gdnative-bindings = { path = "../gdnative-bindings", version = "=0.11.1" }
2020
atomic-waker = "1"
2121
crossbeam-channel = "0.5"
2222
futures-task = "0.3"

gdnative-bindings/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "The Godot game engine's automatcally generated bindings to Godot
55
documentation = "https://docs.rs/crate/gdnative-bindings"
66
repository = "https://github.com/godot-rust/godot-rust"
77
homepage = "https://godot-rust.github.io/"
8-
version = "0.11.0"
8+
version = "0.11.1"
99
license = "MIT"
1010
workspace = ".."
1111
edition = "2021"
@@ -18,8 +18,8 @@ custom-godot = ["gdnative_bindings_generator/custom-godot"]
1818
ptrcall = ["gdnative_bindings_generator/ptrcall"]
1919

2020
[dependencies]
21-
gdnative-core = { path = "../gdnative-core", version = "=0.11.0" }
21+
gdnative-core = { path = "../gdnative-core", version = "=0.11.1" }
2222
libc = "0.2"
2323

2424
[build-dependencies]
25-
gdnative_bindings_generator = { path = "../bindings-generator", version = "=0.11.0" }
25+
gdnative_bindings_generator = { path = "../bindings-generator", version = "=0.11.1" }

gdnative-core/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "The Godot game engine's gdnative core bindings."
55
documentation = "https://docs.rs/crate/gdnative-core"
66
repository = "https://github.com/godot-rust/godot-rust"
77
homepage = "https://godot-rust.github.io/"
8-
version = "0.11.0"
8+
version = "0.11.1"
99
license = "MIT"
1010
workspace = ".."
1111
edition = "2021"
@@ -17,9 +17,9 @@ gd-test = []
1717
type-tag-fallback = []
1818

1919
[dependencies]
20-
gdnative-sys = { path = "../gdnative-sys", version = "=0.11.0" }
21-
gdnative-derive = { path = "../gdnative-derive", version = "=0.11.0" }
22-
gdnative-impl-proc-macros = { path = "../impl/proc-macros", version = "=0.11.0" }
20+
gdnative-sys = { path = "../gdnative-sys", version = "=0.11.1" }
21+
gdnative-derive = { path = "../gdnative-derive", version = "=0.11.1" }
22+
gdnative-impl-proc-macros = { path = "../impl/proc-macros", version = "=0.11.1" }
2323
ahash = "0.8"
2424
approx = "0.5"
2525
atomic-take = "1"

gdnative-core/src/export/method.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ impl<'a> Varargs<'a> {
278278
/// Returns the remaining arguments as a slice of `Variant`s.
279279
#[inline]
280280
pub fn as_slice(&self) -> &'a [&'a Variant] {
281-
self.args
281+
&self.args[self.idx..]
282282
}
283283

284284
/// Discard the rest of the arguments, and return an error if there is any.

gdnative-derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "The Godot game engine's gdnative derive and procedural macros."
55
documentation = "https://docs.rs/crate/gdnative-derive"
66
repository = "https://github.com/godot-rust/godot-rust"
77
homepage = "https://godot-rust.github.io/"
8-
version = "0.11.0"
8+
version = "0.11.1"
99
license = "MIT"
1010
workspace = ".."
1111
edition = "2021"

gdnative-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Generated bindings to the Godot game engine's gdnative core types
55
documentation = "https://docs.rs/crate/gdnative-sys"
66
repository = "https://github.com/godot-rust/godot-rust"
77
homepage = "https://godot-rust.github.io/"
8-
version = "0.11.0"
8+
version = "0.11.1"
99
build = "build.rs"
1010
license = "MIT"
1111
workspace = ".."

gdnative/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords = ["gamedev", "godot", "engine", "bindings"]
66
documentation = "https://docs.rs/crate/gdnative"
77
repository = "https://github.com/godot-rust/godot-rust"
88
homepage = "https://godot-rust.github.io/"
9-
version = "0.11.0"
9+
version = "0.11.1"
1010
license = "MIT"
1111
workspace = ".."
1212
readme = "../README.md"
@@ -28,10 +28,10 @@ gd-test = ["gdnative-core/gd-test"]
2828
type-tag-fallback = ["gdnative-core/type-tag-fallback"]
2929

3030
[dependencies]
31-
gdnative-derive = { path = "../gdnative-derive", version = "=0.11.0" }
32-
gdnative-core = { path = "../gdnative-core", version = "=0.11.0" }
33-
gdnative-bindings = { path = "../gdnative-bindings", version = "=0.11.0" }
34-
gdnative-async = { path = "../gdnative-async", version = "=0.11.0", optional = true }
31+
gdnative-derive = { path = "../gdnative-derive", version = "=0.11.1" }
32+
gdnative-core = { path = "../gdnative-core", version = "=0.11.1" }
33+
gdnative-bindings = { path = "../gdnative-bindings", version = "=0.11.1" }
34+
gdnative-async = { path = "../gdnative-async", version = "=0.11.1", optional = true }
3535

3636
[dev-dependencies]
3737
trybuild = "1.0.18" # earrlier versions use broken termcolor 1.0.0

0 commit comments

Comments
 (0)