initial commit

This commit is contained in:
Patrick Marsee 2024-07-08 21:02:50 -04:00
commit 98e8cc418b
5 changed files with 24 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

10
Cargo.toml Normal file
View file

@ -0,0 +1,10 @@
[package]
name = "rail_network"
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" }

0
README.md Normal file
View file

12
src/lib.rs Normal file
View file

@ -0,0 +1,12 @@
mod rail_graph;
mod prelude {
pub use godot::prelude::*;
}
use prelude::*;
struct RailNetworkExtension;
#[gdextension]
unsafe impl ExtensionLibrary for RailNetworkExtension {}

1
src/rail_graph.rs Normal file
View file

@ -0,0 +1 @@
use crate::prelude::*;