diff --git a/Cargo.toml b/Cargo.toml index 968896b..624156b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,8 +10,10 @@ resolver = "2" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +bevy = "0.10.1" - +[features] +dynamic_linking = ["bevy/dynamic_linking"] #large compile-time improvements on macos [profile.dev] @@ -19,4 +21,4 @@ opt-level = 1 # Enable high optimizations for dependencies (incl. Bevy), but not for our code: [profile.dev.package."*"] -opt-level = 3 \ No newline at end of file +opt-level = 3 diff --git a/src/main.rs b/src/main.rs index e7a11a9..da823f4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,11 @@ +use bevy::prelude::*; + fn main() { - println!("Hello, world!"); + App::new() + .add_system(hello_world) + .run(); } + +fn hello_world() { + println!("hello world!"); +} \ No newline at end of file