2 Achegas 60d187c4e7 ... a49d061048

Autor SHA1 Mensaxe Data
  john melesky a49d061048 bevy/trunk setup hai 2 meses
  john melesky 2a7c80b839 add dist hai 2 meses
Modificáronse 4 ficheiros con 49 adicións e 0 borrados
  1. 6 0
      .gitignore
  2. 35 0
      Cargo.toml
  3. 5 0
      Trunk.toml
  4. 3 0
      src/main.rs

+ 6 - 0
.gitignore

@@ -10,6 +10,7 @@
 
 # Generated by Cargo
 /target/
+/dist/
 
 # ---> Emacs
 # -*- mode: gitignore; -*-
@@ -45,3 +46,8 @@ tramp
 # cask packages
 .cask/
 
+
+
+# Added by cargo
+
+/target

+ 35 - 0
Cargo.toml

@@ -0,0 +1,35 @@
+[package]
+name = "bevy-jam-5"
+version = "0.1.0"
+edition = "2021"
+
+# 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
+
+# Enable more optimization in the release profile at the cost of compile time.
+[profile.release]
+# Compile the entire crate as one unit.
+# Slows compile times, marginal improvements.
+codegen-units = 1
+# Do a second optimization pass over the entire program, including dependencies.
+# Slows compile times, marginal improvements.
+lto = "thin"
+
+# Optimize for size in the wasm-release profile to reduce load times and bandwidth usage on web.
+[profile.wasm-release]
+# Default to release profile values.
+inherits = "release"
+# Optimize with size in mind (also try "z", sometimes it is better).
+# Slightly slows compile times, great improvements to file size and runtime performance.
+opt-level = "s"
+# Strip all debugging information from the binary to slightly reduce file size.
+strip = "debuginfo"
+
+
+[dependencies]
+bevy = { version = "0.14.0", features = ["dynamic_linking"] }

+ 5 - 0
Trunk.toml

@@ -0,0 +1,5 @@
+[build]
+public_url = "./"
+
+[serve]
+port = 8080

+ 3 - 0
src/main.rs

@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world!");
+}