>>105998002>for instance, linking against bevy, which has to happen after all compilation takes around 5 minutes in debug modeWhat?
bat src/main.rs
$ cat src/main.rs
use bevy::{color::palettes::basic::PURPLE, prelude::*};
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_systems(Startup, setup)
.run();
}
fn setup(
mut commands: Commands,
mut meshes: ResMut<Assets<Mesh>>,
mut materials: ResMut<Assets<ColorMaterial>>,
) {
commands.spawn(Camera2d);
commands.spawn((
Mesh2d(meshes.add(Rectangle::default())),
MeshMaterial2d(materials.add(Color::from(PURPLE))),
Transform::default().with_scale(Vec3::splat(128.)),
));
}
$ cargo run
Compiling bevytest v0.1.0
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.89s
Running `target/debug/bevytest`
Compilation + download + linking from scratch took exactly 1 minute (Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 00s)