Compare commits
4 Commits
03c7d44aad
...
ac60482688
| Author | SHA1 | Date | |
|---|---|---|---|
| ac60482688 | |||
| 75a675977a | |||
| 8f2ab97cf0 | |||
| e494fc6c35 |
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -175,7 +175,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "another-boids-in-rust"
|
name = "another-boids-in-rust"
|
||||||
version = "0.8.0"
|
version = "0.9.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"avian2d",
|
"avian2d",
|
||||||
"bevy",
|
"bevy",
|
||||||
|
|||||||
12
Cargo.toml
12
Cargo.toml
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "another-boids-in-rust"
|
name = "another-boids-in-rust"
|
||||||
version = "0.8.0"
|
version = "0.9.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
license = "AGPL-3.0-only"
|
license = "AGPL-3.0-only"
|
||||||
rust-version = "1.88.0"
|
rust-version = "1.88.0"
|
||||||
@@ -10,16 +10,6 @@ avian2d = "0.4"
|
|||||||
bevy = "0.17.0"
|
bevy = "0.17.0"
|
||||||
bevy-inspector-egui = "0.34"
|
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"
|
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
opt-level = 1
|
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
|
# This script produces a web build. If you aren't trying to do that, it is
|
||||||
# entirely useless to you.
|
# entirely useless to you.
|
||||||
|
|
||||||
# Patch these to select a different build profile or target
|
# # # Configuration Variables # # #
|
||||||
# The target shouldn't change any time soon. WASM64, I guess. Other targets
|
# (because I don't have a ./configure script)
|
||||||
# aren't aimed at the web, so you shouldn't be using this makefile.
|
#
|
||||||
|
# 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_TARGET := wasm32-unknown-unknown
|
||||||
CARGO_PROFILE := wasm-release
|
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 ?= .
|
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
|
SRC_DIR = ./src
|
||||||
SRCS := $(wildcard $(SRC_DIR)/**)
|
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
|
.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
|
out/index.html: www/index.html
|
||||||
cp -a $< $@
|
cp -a $< $@
|
||||||
rm -f out/boids.html
|
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.
|
# Like `out/index.html`, but renames it for use in a larger site.
|
||||||
out/boids.html: www/index.html
|
out/boids.html: www/index.html
|
||||||
cp -a $< $@
|
cp -a $< $@
|
||||||
rm -f out/index.html
|
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
|
# 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.
|
# and I don't want to obliterate it all the time.
|
||||||
|
|||||||
@@ -103,8 +103,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Program Version</td>
|
<td>Program Version</td>
|
||||||
<!-- This version text is completely unchecked. I'll need to do something about that. -->
|
<td><code>#CRATE_VERSION_PLACEHOLDER#</code></td>
|
||||||
<td><code>v0.6.0</code></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
Reference in New Issue
Block a user