From 6fa1222c86c4f5a37bea639416418405cf7a1b7c Mon Sep 17 00:00:00 2001 From: dani Date: Thu, 27 Jul 2023 05:23:09 +0000 Subject: [PATCH] fixed missing dependency in scaffolding --- CHANGLOG.md | 6 +++++- src/main.rs | 9 +++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGLOG.md b/CHANGLOG.md index 8a8624a..9f4e05b 100644 --- a/CHANGLOG.md +++ b/CHANGLOG.md @@ -1,7 +1,11 @@ -# 0.2.0 - +# 0.2.1 - 2023-07-27 +- fixed missing dependency in scaffolding + +# 0.2.0 - 2023-07-27 - added README.md - renamed tilemaps to backgrounds to make space for... tilemaps - tile idx 0xffff and palette idx 0xff are now transparent rather than 0x0000 +- added gsa scaffolding tool # 0.1.0 - 2023-07-21 initial release \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 0a2a82b..72a173d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,16 +76,21 @@ fn main() { Some(local) => { writeln!( cargo, - "{} = {{path = \"{}\"}}\nglam = \"0.24.0\"\n\n[profile.dev.package.{}]\nopt-level = 3", + "{} = {{path = \"{}\"}}\n", crate_name!(), canonicalize(local) .expect("couldn't find path") .to_slash_lossy(), - crate_name!() ) .unwrap(); } } + writeln!( + cargo, + "glam = \"0.24.0\"\n\n[profile.dev.package.{}]\nopt-level = 3", + crate_name!() + ) + .unwrap(); write( path.join("src/main.rs"), include_str!("../examples/hello_world/main.rs"),