Skip to content

Commit

Permalink
deps: init bevy dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Sycrosity committed Sep 1, 2023
1 parent 376cd65 commit c77623d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ 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]
opt-level = 1

# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
[profile.dev.package."*"]
opt-level = 3
opt-level = 3
10 changes: 9 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -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!");
}

0 comments on commit c77623d

Please sign in to comment.