Skip to content

Introduce a generic rust async runtime integration #1228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
18d8a22
Merge pull request #1205 from 0x53A/dev-fix-godot_rust_registrant
Bromeon Jun 26, 2025
63a5eaf
Update clippy lints
Yarwin Jun 30, 2025
17f30e7
Merge pull request #1222 from Yarwin/ignore-clippy-uninlined-format-args
Bromeon Jul 1, 2025
3aa4e48
Add async with tokio runtime support, first working version
AllenDang Jul 2, 2025
0b935ee
Refact async runtime
AllenDang Jul 2, 2025
df12813
Refine async_func macro, direct return signal
AllenDang Jul 2, 2025
6f6674f
Remove useless async call wrapper
AllenDang Jul 2, 2025
15c6202
Refine the async tokio integration, enhance the runtime management
AllenDang Jul 7, 2025
548b9ff
Decouple tokio from gdext, create generic async runtime interface ins…
AllenDang Jul 7, 2025
401d0d4
Refine async runtime, enhance memory safty
AllenDang Jul 7, 2025
7df5f6a
Enhance the task_queue
AllenDang Jul 7, 2025
80b5e93
Unify the global state into thread_local
AllenDang Jul 7, 2025
2abedde
Simplified the code, remove unnecessary features
AllenDang Jul 7, 2025
e8c8155
Apply batch task executable
AllenDang Jul 7, 2025
6b875c2
Optimize future storage
AllenDang Jul 7, 2025
dfcfdb6
Merge pull request #1 from godot-rust/master
AllenDang Jul 7, 2025
c4ee772
Merge branch 'master' into master
AllenDang Jul 8, 2025
83e8df8
Implement async instance function support
AllenDang Jul 8, 2025
353f709
Simplify the tests, remove http related code in test cases
AllenDang Jul 8, 2025
43e63eb
Simplified the structures, and fix doc string tests
AllenDang Jul 9, 2025
abf4896
Merge pull request #2 from godot-rust/master
AllenDang Jul 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function run() {
# exit status if not found.
function findGodot() {
# $godotBin previously detected.
if [[ -v godotBin ]]; then
if [[ -n "${godotBin+x}" ]]; then
return
fi

Expand Down Expand Up @@ -297,13 +297,13 @@ log

function compute_elapsed() {
local total=$SECONDS
local min=$(("$total" / 60))
local min=$((total / 60))
if [[ "$min" -gt 0 ]]; then
min="${min}min "
else
min=""
fi
local sec=$(("$total" % 60))
local sec=$((total % 60))

# Don't use echo and call it with $(compute_elapsed), it messes with stdout
elapsed="${min}${sec}s"
Expand Down
3 changes: 3 additions & 0 deletions godot-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ homepage = "https://godot-rust.github.io"
[features]
default = []
register-docs = []

codegen-rustfmt = ["godot-ffi/codegen-rustfmt", "godot-codegen/codegen-rustfmt"]
codegen-full = ["godot-codegen/codegen-full"]
codegen-lazy-fptrs = [
Expand Down Expand Up @@ -50,6 +51,8 @@ glam = { workspace = true }
serde = { workspace = true, optional = true }
godot-cell = { path = "../godot-cell", version = "=0.3.2" }

pin-project-lite = { workspace = true }

[build-dependencies]
godot-bindings = { path = "../godot-bindings", version = "=0.3.2" }
godot-codegen = { path = "../godot-codegen", version = "=0.3.2" }
Expand Down
Loading