build: build/Rosetta.rbxm / .rbxmx, the native Roblox build: a Rosetta root ModuleScript (registry, _internal) and chunk ModuleScripts loaded on first include, each under the native codegen budget; build/Rosetta.luau is the no-native single file; Rojo mounts the rbxm; chunked test suite and lune / rojo check

This commit is contained in:
4DBug committed 2026-11-01 19:04:51 -06:00
1 parent 9e7d159af8
commit 6baa698abe
12 files changed
+195815 -2596

No files matched your search

+5 -3
View File
@@ -4,9 +4,11 @@ Read, write and convert file formats in pure Luau, on Roblox, LuaJIT / LÖVE and
## Install
- **Roblox:** put [`build/Rosetta.luau`](build/Rosetta.luau) in a ModuleScript (e.g. ReplicatedStorage.Rosetta),
or mount it with Rojo (`"Rosetta": { "$path": "rosetta/build/Rosetta.luau" }`; this repo's `default.project.json`
does). Then `local F = require(ReplicatedStorage.Rosetta)`.
- **Roblox (native):** insert [`build/Rosetta.rbxm`](build/Rosetta.rbxm) (a `Rosetta` ModuleScript whose child chunks
load on first use, each compiled natively), or mount it with Rojo (`"$path": "rosetta/build/Rosetta.rbxm"`; this
repo's `default.project.json` does). Then `local F = require(ReplicatedStorage.Rosetta)`.
- **Roblox (one file, no native code):** paste [`build/Rosetta.luau`](build/Rosetta.luau) into a ModuleScript, or mount
it with Rojo (`"$path": "rosetta/build/Rosetta.luau"`). Same API; interpreted, so the codecs run slower.
- **LÖVE / LuaJIT:** copy [`build/rosetta.lua`](build/rosetta.lua). `local F = require("rosetta")` with its folder on
`package.path`, or `local F = dofile("rosetta.lua")`.
- **Luau CLI:** alias the sources in `.luaurc` (`"rosetta": "rosetta/src/Rosetta"`), then