Introduction
Quark is a batteries included utility library for the nanos world server, written in Rust. It adds what the built-in scripting API does not cover: cryptography, networking, data formats, compression, fast native computation and more, all from the global Quark in your server scripts.
local Crypto = Quark.Import("Crypto")
Console.Log(Crypto.SHA256("abc"))
Crypto.Argon2Hash("hunter2", function(hash, error)
Console.Log(hash)
end)
Heavy work runs on native worker threads and the results come back on the game thread, so hashing passwords, generating terrain or answering HTTP requests does not stall the server.
Modules
Start with the installation, then read the basics shared by all modules.