This commit is contained in:
2024-06-29 17:48:59 -04:00
Unverified
parent 6061d3e3c1
commit 818bec067f
10 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
[package]
name = "realmchat_client"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib"] # Compile this crate to a dynamic C library.
[dependencies]
godot = { git = "https://github.com/godot-rust/gdext", branch = "master" }

View File

@@ -0,0 +1,10 @@
use godot::prelude::*;
struct MyExtension;
#[gdextension]
unsafe impl ExtensionLibrary for MyExtension {}
pub fn add(left: usize, right: usize) -> usize {
left + right
}