formats-luau foundation: build (darklua + token passes) for Roblox and LuaJIT, compat prelude, core, Types, host adapters, API + registry, lint, tests on both runtimes; absorb deflate (codecs/Deflate + new compressor) and png (image/png + new encoder)
This commit is contained in:
commit
cdcb5b0b77
226 files changed
+8409
No files matched your search
@@ -0,0 +1,31 @@
|
||||
--!strict
|
||||
-- Registry: GENERATED by tools/gen_registry.py from the format folders - do not edit.
|
||||
-- One entry per format: the contract metadata (copied from its init.luau) and load(), which requires the format
|
||||
-- module on first use (a static require, as Roblox needs). Order: category, then name.
|
||||
export type Entry = {
|
||||
name: string,
|
||||
category: string,
|
||||
path: string,
|
||||
extensions: { string },
|
||||
mime: { string },
|
||||
deps: { string },
|
||||
caps: { [string]: any },
|
||||
load: () -> any,
|
||||
}
|
||||
|
||||
local list: { Entry } = {
|
||||
{
|
||||
name = "png",
|
||||
category = "image",
|
||||
path = "image/png",
|
||||
extensions = { "png", "apng" },
|
||||
mime = { "image/png", "image/apng" },
|
||||
deps = { "core/Err", "core/Bytes", "core/Crc32", "codecs/Deflate", "Types" },
|
||||
caps = { decode = true, encode = true, animation = false, alpha = true, depths = { 1, 2, 4, 8, 16 } },
|
||||
load = function()
|
||||
return require("@formats/image/png")
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
return list
|
||||
Reference in new issue
Block a user