diff --git a/Cargo.toml b/Cargo.toml index 5b5b167..f068d10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,9 @@ bevy_panorbit_camera = "0.34" [features] wayland = ["bevy/dynamic_linking", "bevy/wayland"] wasm = [] + +[profile.release] +opt-level = 'z' +lto = "thin" +# lto = true +# codegen-units = 1 diff --git a/flake.nix b/flake.nix index 75d06d8..38a6aa8 100644 --- a/flake.nix +++ b/flake.nix @@ -163,6 +163,8 @@ cargo-outdated lld trunk + binaryen + neocities ] ++ (lib.optionals pkgs.stdenv.isDarwin [ apple-sdk_26 diff --git a/justfile b/justfile new file mode 100644 index 0000000..f1083b3 --- /dev/null +++ b/justfile @@ -0,0 +1,2 @@ +push: + neocities push --prune dist diff --git a/src/main.rs b/src/main.rs index fd43b29..b4b9df0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,16 +33,6 @@ fn setup( }, Transform::from_xyz(50.0, 50.0, 50.0).looking_at(Vec3::ZERO, Vec3::Y), )); - // commands.spawn(( - // Transform::from_translation(Vec3::new(0.0, 1.5, 6.0)), - // Projection::from(OrthographicProjection { - // scaling_mode: bevy::camera::ScalingMode::FixedVertical { - // viewport_height: 1.0, - // }, - // ..OrthographicProjection::default_3d() - // }), - // bevy_panorbit_camera::PanOrbitCamera::default(), - // )); commands.spawn(( Mesh3d(meshes.add(Plane3d::default().mesh().size(5.0, 5.0))),