data: data/cbor (RFC 8949: indefinite lengths, half floats, tags 0/1 dates, bignums, self-describe, tagged / simple / undefined values, sequences); RFC appendix A + cbor2 fixtures, byte-exact re-encode

This commit is contained in:
4DBug committed 2026-10-31 08:50:39 -05:00
1 parent 4f44e5ebe3
commit 2ef071cb16
6 files changed
+952

No files matched your search

+12
View File
@@ -26,6 +26,18 @@ local list: { Entry } = {
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 = "json",
category = "data",