Port Rust-g DLL and use it for logging (#5394)

This commit is contained in:
Mykhailo Bykhovtsev
2018-10-12 16:46:19 +02:00
committed by Werner
parent 2bb70110df
commit f179568e1d
7 changed files with 93 additions and 7 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
if [ -f $HOME/rust_g-$RUST_G_VERSION/rust_g ]; then
echo "rust_g already cached."
exit 0
fi
set -e
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-host i686-unknown-linux-gnu
source ~/.profile
git clone --branch $RUST_G_VERSION https://github.com/tgstation/rust-g
cd rust-g
cargo build --release
mkdir -p ~/.byond/bin
cp $PWD/target/release/librust_g.so $HOME/rust_g-$RUST_G_VERSION/rust_g