marked/zucchini

Squash with a touch of new solver

CI License: MIT Wally Pesde

Squash with a fancy touch of Luau's new solver.

Installation

Pesde

  1. pesde add marked/zucchini
  2. pesde install

Wally

  1. Add it to your wally manifest:
    [dependencies]
    zucchini = "mark-marks/zucchini@LATEST" # Replace LATEST with the latest version
  2. wally install

NPM / roblox-ts

Zucchini isn't currently available for roblox-ts.
Contributions are welcome!

Usage

Zucchini is Squash with a lighter syntax, for example:

local player_serdes = zucchini.record {
    position = zucchini.vector,
    health = zucchini.uint8,
    name = zucchini.string,
    poisoned = zucchini.boolean,
    items = zucchini.array {
        zucchini.record {
            count = zucchini.vlq,
            name = zucchini.string,
        },
    },
    inns = zucchini.map { [zucchini.string] = zucchini.boolean },
    equipped = zucchini.opt { zucchini.string },
}