It use gmod-lzma-rs and make it available for Garry's Mod with threading
async_compress("Data to compress", function(compressed)
print(compressed)
end)
async_decompress("Data to decompress", function(decompressed)
print(decompressed)
end)
For Linux 32 bit, you need to do this in 2 stages:
- Create a Docker image -
docker build -t rust_32bit .
- Execute the compilation -
docker run -it -v $(pwd):/compile_area -w "/compile_area" rust_32bit
- You can find the result in
target/i686-unknown-linux-gnu/release/libgmsv_async_compress.so
which you should copy tolua/bin/gmsv_async_compress_linux.dll
- Invoke the module via
require("async_compress")