structure
This commit is contained in:
parent
deacfbf09d
commit
f6dfd7e4de
2
Cargo.toml
Normal file
2
Cargo.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[workspace]
|
||||||
|
members = ["./game", "./wrapper"]
|
10
game/Cargo.toml
Normal file
10
game/Cargo.toml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[package]
|
||||||
|
name = "game"
|
||||||
|
publish = false
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
cgmath = "0.18"
|
5
game/src/lib.rs
Normal file
5
game/src/lib.rs
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
/// The game entrypoint
|
||||||
|
pub fn game_begin() {
|
||||||
|
|
||||||
|
}
|
10
wrapper/Cargo.toml
Normal file
10
wrapper/Cargo.toml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[package]
|
||||||
|
name = "wrapper"
|
||||||
|
publish = false
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
game = { version = "0.1", path = "../game"}
|
3
wrapper/README.md
Normal file
3
wrapper/README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Ignore this
|
||||||
|
|
||||||
|
This crate exists to wrap the `game` lib crate. This is just a little workaround to make the Rust compiler better cache files when developing the game.
|
5
wrapper/src/main.rs
Normal file
5
wrapper/src/main.rs
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
use game::game_begin;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
game_begin();
|
||||||
|
}
|
Reference in New Issue
Block a user