Skip to content

Instantly share code, notes, and snippets.

@ulanda
ulanda / RustJS.md
Last active March 5, 2024 23:31
Rust Compile with asmjs target

You will need nightly Rust

  • Install Rust, se rustup.sh curl -sSf https://static.rust-lang.org/rustup.sh | sh
  • Update installaion with: rustup self update rustup self update-data
  • Install nightly Rust: rustup toolchain install nightly
  • Default to nightly: rustup default nightly
@ulanda
ulanda / Reduce.bat
Created January 16, 2014 09:12
Small bat file that generates an stand alone miniLua.c almos automatically. After executing you have to "Search and replace" all the "#include "" with //#include ", take care of the space between include and ". Needs to run inside a directory at the same level that lua src,
@echo off
:::::::::::::::::::::::::::::::::::::::::::::::::::
echo Clean all output
:::::::::::::::::::::::::::::::::::::::::::::::::::
del *.c
del *.h
:::::::::::::::::::::::::::::::::::::::::::::::::::
echo Copy Lua HEADERS
:::::::::::::::::::::::::::::::::::::::::::::::::::