Skip to content

Commit

Permalink
feat: progress with wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
kpbaks committed Apr 6, 2024
1 parent 9c9b545 commit b01dab1
Show file tree
Hide file tree
Showing 124 changed files with 2,809 additions and 295 deletions.
14 changes: 10 additions & 4 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# Recommended by bevy: https://bevyengine.org/learn/book/getting-started/setup/
[target.x86_64-unknown-linux-gnu]
linker = "clang"
## TODO: the path to mold is not right when using nix
# rustflags = ["-C", "link-arg=-fuse-ld=mold"]
# rustflags = ["-C", "linker=mold"]
## rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]
rustflags = [
"-Clink-arg=-fuse-ld=mold", # Use mold Linker
# "-Zshare-generics=y", # (Nightly) Make the current crate share its generic instantiations
# "-Zthreads=0", # (Nightly) Use improved multithreading with the recommended amount of threads.
]

# compile simulation as a wasm binary for static webpage
[target.wasm32-unknown-unknown]
runner = "wasm-server-runner"
rustflags = [
"--cfg=web_sys_unstable_apis",
]

[build]
rustflags = ["-Clink-arg=-fuse-ld=mold"]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/target
.direnv/
**/dist/

*.log
# pixi environments
Expand Down
Loading

0 comments on commit b01dab1

Please sign in to comment.