116 lines
3.3 KiB
Luau
116 lines
3.3 KiB
Luau
--!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,
|
|
},
|
|
{
|
|
name = "cbor",
|
|
category = "data",
|
|
path = "data/cbor",
|
|
extensions = { "cbor" },
|
|
mime = { "application/cbor", "application/cbor-seq" },
|
|
deps = { "core/Err", "core/Bytes", "Types" },
|
|
caps = { decode = true, encode = true, binary = true, ordered = true, tags = true },
|
|
load = function()
|
|
return require("@formats/data/cbor")
|
|
end,
|
|
},
|
|
{
|
|
name = "csv",
|
|
category = "data",
|
|
path = "data/csv",
|
|
extensions = { "csv", "tsv" },
|
|
mime = { "text/csv", "text/tab-separated-values" },
|
|
deps = { "core/Err", "core/Bytes", "Types", "codecs/Json" },
|
|
caps = { decode = true, encode = true, header = true },
|
|
load = function()
|
|
return require("@formats/data/csv")
|
|
end,
|
|
},
|
|
{
|
|
name = "ini",
|
|
category = "data",
|
|
path = "data/ini",
|
|
extensions = { "ini", "cfg", "conf", "inf", "desktop" },
|
|
mime = { "text/plain" },
|
|
deps = { "core/Err", "core/Bytes", "Types", "codecs/Json" },
|
|
caps = { decode = true, encode = true, ordered = true },
|
|
load = function()
|
|
return require("@formats/data/ini")
|
|
end,
|
|
},
|
|
{
|
|
name = "json",
|
|
category = "data",
|
|
path = "data/json",
|
|
extensions = { "json", "jsonl", "ndjson", "geojson" },
|
|
mime = { "application/json", "application/x-ndjson" },
|
|
deps = { "core/Err", "core/Bytes", "codecs/Json" },
|
|
caps = { decode = true, encode = true, ordered = true, streaming = true },
|
|
load = function()
|
|
return require("@formats/data/json")
|
|
end,
|
|
},
|
|
{
|
|
name = "msgpack",
|
|
category = "data",
|
|
path = "data/msgpack",
|
|
extensions = { "msgpack", "mpk" },
|
|
mime = { "application/msgpack", "application/x-msgpack" },
|
|
deps = { "core/Err", "core/Bytes", "Types" },
|
|
caps = { decode = true, encode = true, binary = true, ordered = true },
|
|
load = function()
|
|
return require("@formats/data/msgpack")
|
|
end,
|
|
},
|
|
{
|
|
name = "toml",
|
|
category = "data",
|
|
path = "data/toml",
|
|
extensions = { "toml" },
|
|
mime = { "application/toml" },
|
|
deps = { "core/Err", "core/Bytes", "Types", "codecs/Json" },
|
|
caps = { decode = true, encode = true, ordered = true, dates = true },
|
|
load = function()
|
|
return require("@formats/data/toml")
|
|
end,
|
|
},
|
|
{
|
|
name = "xml",
|
|
category = "data",
|
|
path = "data/xml",
|
|
extensions = { "xml", "xsd", "xsl", "xslt", "rss", "atom", "xhtml" },
|
|
mime = { "application/xml", "text/xml" },
|
|
deps = { "core/Err", "core/Bytes", "Types", "codecs/Xml" },
|
|
caps = { decode = true, encode = true, namespaces = true, streaming = true },
|
|
load = function()
|
|
return require("@formats/data/xml")
|
|
end,
|
|
},
|
|
}
|
|
|
|
return list
|