squishy

Thu, 23 Mar 2023 15:12:30 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 23 Mar 2023 15:12:30 +0000
changeset 174
662bd8c5ae28
parent 171
433a1f36d0d3
child 181
3a9b9c98304a
permissions
-rw-r--r--

Serialize XML in a consistent order by default

This overrides all XML serialization to emit attributes in an ordered form, so
the XML will match across multiple runs. This can be useful for comparing
different runs, or even two stanzas printed in the same run (e.g. if there is
a mismatch).

Main "main.lua"

Output "scansion.bin"
Option "executable"

Module "scansion.async"
Module "scansion.error"
Module "scansion.parser"
Module "scansion.helpers"
Module "scansion.iterators"
Module "scansion.objects.client"
Module "scansion.queue"
Module "scansion.stanzacmp"
Module "scansion.xml"
Module "scansion.console"
Module "scansion.pretty"
Module "scansion.ordered_serializer"

if GetOption "with-verse" then
	Module "verse"
end

if GetOption "with-server" then
	Module "scansion.serve"
	Module "net.http.server" "serve/net/http/server.lua"
	Module "net.http.parser" "serve/net/http/parser.lua"
	Module "net.http.codes"  "serve/net/http/codes.lua"
	Module "util.cache"      "serve/util/cache.lua"
end

mercurial