{"repo":"2-3-5-41/godot_tokio","free":true,"listed":false,"github":"https://github.com/2-3-5-41/godot_tokio","clone":"git clone https://github.com/2-3-5-41/godot_tokio.git","description":"A basic implementation of the Tokio runtime for use in Godot 4.","language":"Rust","stars":24,"topics":["gdext","gdextension","godot"],"license":"MIT","category":"game-templates","readme_excerpt":"godot tokio This was made to prevent re-typing out the boilerplate for creating a tokio runtime godot object. Change Notes Things that changed! 0.3.0 - runtime() can now panic, but only if the Godot engine, is unable to register the AsyncRuntime singleton. - This is due to the function now attempting to register the singleton itself if it wasn't before; this is a 'fail safe', so I'd recommend registering your singleton(s) in on level init instead of having AsyncRuntime::runtime() do it for you. - wrapper functions are technically 1:1 with how you would interact with them outside gdext context, including their return type. Getting started To start, let's get godot tokio in your crate, there are two options: 1. Add the crate using crates.io OR 2. Linking to this repo in your Cargo.toml - godot tokio = { git = \"https://github.com/2-3-5-41/godot tokio\" } . Next, you'll want to add the AsyncRuntime object to your engine singletons like so: All that's left is to use godot tokio , here is a basic example: Note : Additional tokio features are not exposed through this crate, you'll want to add tokio = 1.32.0 to your crate in order to enable additional tokio features.","default_branch":null,"files":null,"tree":[],"storefront":"/r/2-3-5-41","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/2-3-5-41/godot_tokio/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}