Chitose Yuuzaki
Chitose Yuuzaki
I have a workspace that contains a crate with no dependencies, which is depended on by a few other crates in the same workspace. Running `cargo udeps` in the workspace...
const fns cannot have fn pointer arguments that take mutable references, even if they aren't called
I tried this code: ```rust struct Foo { bar: fn(i: &mut i32), } impl Foo { const fn new(bar: fn(i: &mut i32)) -> Self { Foo { bar, } }...
The `NativeClass` macro currently utilizes a large number of type-level attributes, making it tricky to add further expansions to its functionality. The current attributes are: - `inherit` - `user_data` -...
PR #804 introduces the `async` feature which requires additional initialization and cleanup outside `gdnative-core` to work properly. This cannot currently be automatically done, since the `async` crate also depends on...
### Summary When deriving `Deserialize` for a type with `#[serde(from)]` or `#[serde(try_from)]`, serde only generates wrapper code that invokes the safe interface of standard conversion traits. As such, there is...
Currently, `RefCell` and `i32` are used to store user-defined `GodotClass` instances and their reference counts: https://github.com/godot-rust/gdextension/blob/a64f22409e05d1353492fded4aa36a4b4e6b710d/godot-core/src/storage.rs#L15-L21 In a multi-threaded configuration of the engine, this may lead to unsoundness when the...
We'd like to figure out how to handle custom construction of a `GodotClass` that requires access to the `base` object. Currently, it's unclear how the `base` field should be populated...
The following code snippet can be used to put an arbitrary `Node` into a `Gd`: ```rust let mut a: Gd = ...; let mut b: Gd = ...; mem::swap(&mut *a,...
From this discussion in a PR: https://github.com/godot-rust/gdnative/pull/1026#discussion_r1096525141 > It's mostly a matter of consistency and surprise factor -- when I see `core::`, my association is immediately `no_std`, but maybe the...
From DragonAxe via Discord: > So I thought I would try using Ref instead of Instance, but I'm running into this error: > > ```rust > #[method] > fn _ready(&self,...