Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0965760650 | |||
| ac60482688 | |||
| 75a675977a | |||
| 8f2ab97cf0 | |||
| e494fc6c35 |
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -175,7 +175,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "another-boids-in-rust"
|
||||
version = "0.8.0"
|
||||
version = "0.9.0"
|
||||
dependencies = [
|
||||
"avian2d",
|
||||
"bevy",
|
||||
|
||||
20
Cargo.toml
20
Cargo.toml
@@ -1,24 +1,14 @@
|
||||
[package]
|
||||
name = "another-boids-in-rust"
|
||||
version = "0.8.0"
|
||||
version = "0.10.0-dev1"
|
||||
edition = "2024"
|
||||
license = "AGPL-3.0-only"
|
||||
rust-version = "1.88.0"
|
||||
rust-version = "1.89.0"
|
||||
|
||||
[dependencies]
|
||||
avian2d = "0.4"
|
||||
bevy = "0.17.0"
|
||||
bevy-inspector-egui = "0.34"
|
||||
|
||||
# Grand-dependency pins
|
||||
# ab_glyph = "0.2.16"
|
||||
# fnv = "1.0.6"
|
||||
# gilrs = "0.10.5"
|
||||
# lazy_static = "1.0.2"
|
||||
# lock_api = "0.4.7"
|
||||
# miniz-sys = "0.1.10"
|
||||
# nonmax = "0.5.1"
|
||||
# rand = "0.8.0"
|
||||
avian2d = "0.5"
|
||||
bevy = "0.18"
|
||||
bevy-inspector-egui = "0.36"
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 1
|
||||
|
||||
21
Makefile
21
Makefile
@@ -1,17 +1,28 @@
|
||||
# This script produces a web build. If you aren't trying to do that, it is
|
||||
# entirely useless to you.
|
||||
|
||||
# Patch these to select a different build profile or target
|
||||
# The target shouldn't change any time soon. WASM64, I guess. Other targets
|
||||
# aren't aimed at the web, so you shouldn't be using this makefile.
|
||||
# # # Configuration Variables # # #
|
||||
# (because I don't have a ./configure script)
|
||||
#
|
||||
# Patch these to select a different build profile or target.
|
||||
# This Makefile will build a web bundle so using a non-wasm target is basically
|
||||
# nonsense. Maybe WASM64, but I don't think that's useful (or stabilized yet).
|
||||
CARGO_TARGET := wasm32-unknown-unknown
|
||||
CARGO_PROFILE := wasm-release
|
||||
|
||||
# Override DESTDIR to set a custom install path (such as your web root)
|
||||
# Override DESTDIR to set a custom install path
|
||||
# E.g.: your web root
|
||||
# I use it via the Debian package build process (dpkg needs it)
|
||||
DESTDIR ?= .
|
||||
|
||||
# # # Automatic Variables # # #
|
||||
# (meaning you shouldn't modify them yourself)
|
||||
#
|
||||
# These are for automatically finding information or files so that they can be
|
||||
# used somewhere in the build process.
|
||||
SRC_DIR = ./src
|
||||
SRCS := $(wildcard $(SRC_DIR)/**)
|
||||
CRATE_VERSION != sed -nre 's/^version = "(.*)"/\1/p' Cargo.toml
|
||||
|
||||
.PHONY: clean full-clean install tarball tarball-standalone web web-standalone
|
||||
|
||||
@@ -48,11 +59,13 @@ out/boids.js out/boids_bg.wasm.gz &: target/$(CARGO_TARGET)/$(CARGO_PROFILE)/ano
|
||||
out/index.html: www/index.html
|
||||
cp -a $< $@
|
||||
rm -f out/boids.html
|
||||
sed -i -e "s/#CRATE_VERSION_PLACEHOLDER#/$(CRATE_VERSION)/" $@
|
||||
|
||||
# Like `out/index.html`, but renames it for use in a larger site.
|
||||
out/boids.html: www/index.html
|
||||
cp -a $< $@
|
||||
rm -f out/index.html
|
||||
sed -i -e "s/#CRATE_VERSION_PLACEHOLDER#/$(CRATE_VERSION)/" $@
|
||||
|
||||
# Clean the web build, but not the Cargo cache. Cargo handles it's own caching
|
||||
# and I don't want to obliterate it all the time.
|
||||
|
||||
@@ -103,8 +103,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Program Version</td>
|
||||
<!-- This version text is completely unchecked. I'll need to do something about that. -->
|
||||
<td><code>v0.6.0</code></td>
|
||||
<td><code>#CRATE_VERSION_PLACEHOLDER#</code></td>
|
||||
</tr>
|
||||
</table>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user