initial commit

This commit is contained in:
Gered 2023-11-11 14:33:54 -05:00
commit f811271baf
5 changed files with 31 additions and 0 deletions

6
.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
/target
Cargo.lock
.DS_Store
/.idea
*.exe
*.dll

15
Cargo.toml Normal file
View file

@ -0,0 +1,15 @@
[package]
name = "adventure-game"
version = "0.1.0"
edition = "2021"
[dependencies]
ggdt = { git = "https://code.blarg.ca/gered/ggdt.git", rev = "9d02e23e9a9d6095cce729e466c1fc56534f147b" }
anyhow = "=1.0.75"
byteorder = "1.5.0"
serde = { version = "1.0.192", features = ["derive"] }
serde_json = "1.0.108"
[package.metadata.cross.target.x86_64-pc-windows-gnu]
pre-build = ["curl -o /SDL2-devel-2.24.0-mingw.tar.gz http://www.libsdl.org/release/SDL2-devel-2.24.0-mingw.tar.gz && tar -C /usr/x86_64-w64-mingw32/include/ --strip-components=3 -xvf /SDL2-devel-2.24.0-mingw.tar.gz SDL2-2.24.0/x86_64-w64-mingw32/include/ && tar -C /usr/x86_64-w64-mingw32/lib/ --strip-components=3 -xvf /SDL2-devel-2.24.0-mingw.tar.gz SDL2-2.24.0/x86_64-w64-mingw32/lib/"]

4
build-windows.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
cargo install -f cross
cross build --target x86_64-pc-windows-gnu --release

3
rust-toolchain.toml Normal file
View file

@ -0,0 +1,3 @@
[toolchain]
# same as ggdt, for now
channel = "nightly-2023-11-10"

3
src/main.rs Normal file
View file

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}