From 12efe0f210c0e854740051ebc32fd6519967bd78 Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Tue, 18 Apr 2023 15:51:34 +0200 Subject: [PATCH] more --- repro.sh | 2 +- src/main.rs | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/repro.sh b/repro.sh index b3c64d0..ab9608b 100755 --- a/repro.sh +++ b/repro.sh @@ -8,7 +8,7 @@ cargo build ./apply.py -OUT=$(cargo build 2>&1) +OUT=$(cargo rustc -- --cfg second 2>&1) cp tiles.rs src/tiles.rs diff --git a/src/main.rs b/src/main.rs index c9c02a7..e94dba2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,10 @@ extern crate alloc; -mod tiles; + +pub struct TileDef { + pub layer: (), + #[cfg(second)] + pub blend_graphic: String, +} pub(crate) struct App { pub(crate) game: GameState, @@ -26,7 +31,7 @@ fn main() { } // this is actually used pub struct TileDb { - unknown_bg: tiles::TileDef, + unknown_bg: TileDef, } impl std::fmt::Debug for TileDb {