From 235574cf1930f7a572486cda9af0c9c44129ccc3 Mon Sep 17 00:00:00 2001 From: Supermjork Date: Fri, 23 Aug 2024 14:15:22 +0300 Subject: [PATCH] We are go with Bevy <3 --- Cargo.toml | 10 ++++++++++ src/main.rs | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 827c75d..7d09ff6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,13 @@ version = "0.1.0" edition = "2021" [dependencies] +bevy = "0.14.1" + +# Enable a small amount of optimization in the dev profile. +[profile.dev] +opt-level = 1 + +# Enable a large amount of optimization in the dev profile for dependencies. +[profile.dev.package."*"] +opt-level = 3 + diff --git a/src/main.rs b/src/main.rs index bb070bf..fcb65ec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,9 @@ +use bevy::prelude::*; + fn main() { - println!("Inits are hard"); + App::new().add_systems(Update, hello_world).run(); +} + +fn hello_world() { + println!("hello world!"); }