Rename
This commit is contained in:
10
client/realmchat_client/Cargo.toml
Normal file
10
client/realmchat_client/Cargo.toml
Normal 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" }
|
||||
10
client/realmchat_client/src/lib.rs
Normal file
10
client/realmchat_client/src/lib.rs
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user