Software /
code /
verse
Annotate
squishy @ 503:395ae8df5a9e
squishy: Move bit fallback module out of Prosody namespace
This way, prosody.util.bitcompat should pick it up
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Jun 2023 22:20:24 +0200 |
parent | 500:674daff6c73b |
child | 504:8ed3c95bf880 |
rev | line source |
---|---|
26 | 1 Output "verse.lua" |
0 | 2 |
491
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
3 local VerseModule = Module |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
4 local function ProsodyModule(s) |
493 | 5 return VerseModule("prosody." .. s) |
158
068176069dfa
squishy: Add --prosody option to specify a path to a Prosody checkout to use when squishing
Matthew Wild <mwild1@gmail.com>
parents:
157
diff
changeset
|
6 end |
0 | 7 |
491
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
8 function ProsodyModules() |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
9 local Module = ProsodyModule; |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
10 |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
11 -- Prosody libraries |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
12 if not GetOption("prosody") then |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
13 AutoFetchURL "http://hg.prosody.im/0.10/raw-file/tip/?" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
14 else |
493 | 15 AutoFetchURL(GetOption("prosody") .. "/?") |
491
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
16 end |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
17 |
493 | 18 Module "util.sha1" "util/sha1.lua" |
500
674daff6c73b
use util.bitcompat from Prosody for bitwise compat layer
Kim Alvefur <zash@zash.se>
parents:
497
diff
changeset
|
19 Module "util.bitcompat" "libs/bitcompat.lua" |
674daff6c73b
use util.bitcompat from Prosody for bitwise compat layer
Kim Alvefur <zash@zash.se>
parents:
497
diff
changeset
|
20 Module "util.bit53" "libs/bit53.lua" |
486
6416ea3fff86
Fix sha1 support when no binary dependencies available
Matthew Wild <mwild1@gmail.com>
parents:
482
diff
changeset
|
21 |
493 | 22 Module "util.stanza" "util/stanza.lua" |
23 Module "util.timer" "util/timer.lua" | |
24 Module "util.termcolours" "util/termcolours.lua" | |
25 Module "util.uuid" "util/uuid.lua" | |
491
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
26 Module "util.time" "libs/time.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
27 Module "util.envload" "util/envload.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
28 Module "util.id" "util/id.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
29 Module "util.serialization" "util/serialization.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
30 Module "util.indexedbheap" "util/indexedbheap.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
31 Module "util.xpcall" "util/xpcall.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
32 Module "util.array" "util/array.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
33 Module "util.format" "util/format.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
34 Module "util.promise" "util/promise.lua" |
493 | 35 Module "net.adns" "net/unbound.lua" |
491
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
36 Module "util.dns" "util/dns.lua" |
493 | 37 Module "net.server_select" "net/server_select.lua" |
38 Module "util.xmppstream" "util/xmppstream.lua" | |
39 Module "util.jid" "util/jid.lua" | |
40 Module "util.events" "util/events.lua" | |
41 Module "util.dataforms" "util/dataforms.lua" | |
42 Module "util.caps" "util/caps.lua" | |
43 Module "util.logger" "util/logger.lua" | |
44 Module "util.datetime" "util/datetime.lua" | |
45 Module "util.json" "util/json.lua" | |
46 Module "util.xml" "util/xml.lua" | |
47 Module "util.rsm" "util/rsm.lua" | |
48 Module "util.random" "util/random.lua" | |
49 Module "util.ip" "util/ip.lua" | |
491
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
50 Module "util.hex" "util/hex.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
51 Module "util.net" "libs/net.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
52 Module "util.sslconfig" "util/sslconfig.lua" |
493 | 53 Module "util.paths" "util/paths.lua" |
491
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
54 Module "util.mathcompat" "util/mathcompat.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
55 Module "util.dnsregistry" "util/dnsregistry.lua" |
493 | 56 Module "net.tls_luasec" "net/tls_luasec.lua" |
116
151c8cc776df
verse.plugins.adhoc: XEP-0050 Ad-hoc commands plugin
Matthew Wild <mwild1@gmail.com>
parents:
114
diff
changeset
|
57 |
491
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
58 Module "util.http" "util/http.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
59 Module "net.http.parser" "net/http/parser.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
60 Module "net.http" "net/http.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
61 Module "util.x509" "util/x509.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
62 |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
63 end |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
64 |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
65 ProsodyModules() |
357 | 66 |
14 | 67 -- Verse plugins |
233
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
68 plugins = { |
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
69 -- Login |
493 | 70 "tls"; |
71 "sasl"; | |
72 "bind"; -- "session", "legacy", "compression"; | |
233
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
73 -- Reliability |
493 | 74 "smacks"; |
75 "keepalive"; | |
233
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
76 -- Queries |
493 | 77 "disco"; |
78 "version"; | |
79 "ping"; | |
80 "uptime"; | |
81 "time"; | |
233
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
82 -- Privacy control |
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
83 "blocking"; |
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
84 -- Jingle / file transfer |
493 | 85 "jingle"; |
86 "jingle_ft"; | |
87 "jingle_s5b"; | |
88 "proxy65"; | |
89 "jingle_ibb"; | |
233
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
90 -- Pubsub |
493 | 91 "pubsub"; |
92 "pep"; | |
233
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
93 -- Command and control |
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
94 "adhoc"; |
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
95 -- Basics |
493 | 96 "presence"; |
97 "private"; | |
98 "roster"; | |
99 "register"; | |
233
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
100 -- MUC |
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
101 "groupchat"; |
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
102 -- vCard |
493 | 103 "vcard"; |
104 "vcard_update"; | |
233
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
105 -- Carbons |
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
106 "carbons"; |
273
c5b7a4c717a6
plugins.archive: Experimental implementation of the Message Archive Management ProtoXEP
Kim Alvefur <zash@zash.se>
parents:
238
diff
changeset
|
107 |
c5b7a4c717a6
plugins.archive: Experimental implementation of the Message Archive Management ProtoXEP
Kim Alvefur <zash@zash.se>
parents:
238
diff
changeset
|
108 "archive"; |
481
6fc84e9bd03e
squishy: Add browsing plugin
Matthew Wild <mwild1@gmail.com>
parents:
480
diff
changeset
|
109 "browsing"; |
233
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
110 } |
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
111 |
b5fd3292bdbd
squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents:
227
diff
changeset
|
112 for _, plugin in ipairs(plugins) do |
493 | 113 VerseModule("verse.plugins." .. plugin)("plugins/" .. plugin .. ".lua") |
134
2101acbb27c4
squishy: Use --internal-bit-module to squish with the pure-Lua bit library
Matthew Wild <mwild1@gmail.com>
parents:
131
diff
changeset
|
114 end |
2101acbb27c4
squishy: Use --internal-bit-module to squish with the pure-Lua bit library
Matthew Wild <mwild1@gmail.com>
parents:
131
diff
changeset
|
115 |
495
1ca531495c3d
squishy: Move some compat layers into verse namespace
Kim Alvefur <zash@zash.se>
parents:
493
diff
changeset
|
116 -- Verse-specific versions of libraries |
1ca531495c3d
squishy: Move some compat layers into verse namespace
Kim Alvefur <zash@zash.se>
parents:
493
diff
changeset
|
117 VerseModule "verse.util.adhoc" "libs/adhoc.lib.lua" |
500
674daff6c73b
use util.bitcompat from Prosody for bitwise compat layer
Kim Alvefur <zash@zash.se>
parents:
497
diff
changeset
|
118 VerseModule "verse.util.bit" "libs/bit.lua" |
495
1ca531495c3d
squishy: Move some compat layers into verse namespace
Kim Alvefur <zash@zash.se>
parents:
493
diff
changeset
|
119 VerseModule "verse.util.encodings" "libs/encodings.lua" |
1ca531495c3d
squishy: Move some compat layers into verse namespace
Kim Alvefur <zash@zash.se>
parents:
493
diff
changeset
|
120 VerseModule "verse.util.hashes" "libs/hashes.lua" |
1ca531495c3d
squishy: Move some compat layers into verse namespace
Kim Alvefur <zash@zash.se>
parents:
493
diff
changeset
|
121 VerseModule "verse.util.table" "libs/table.lua" |
497
eb86e3751978
util.vcard: Move into verse namespace since it's removed from Prosody
Kim Alvefur <zash@zash.se>
parents:
495
diff
changeset
|
122 VerseModule "verse.util.vcard" "util/vcard.lua" |
495
1ca531495c3d
squishy: Move some compat layers into verse namespace
Kim Alvefur <zash@zash.se>
parents:
493
diff
changeset
|
123 |
492
22844ac3be4e
server: Import one of Prosodys net.server implementations
Kim Alvefur <zash@zash.se>
parents:
491
diff
changeset
|
124 VerseModule "verse.server" "server.lua" |
22844ac3be4e
server: Import one of Prosodys net.server implementations
Kim Alvefur <zash@zash.se>
parents:
491
diff
changeset
|
125 |
491
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
126 -- SASL client mechanisms |
493 | 127 VerseModule "verse.util.sasl.scram" "util/sasl/scram.lua" |
128 VerseModule "verse.util.sasl.plain" "util/sasl/plain.lua" | |
129 VerseModule "verse.util.sasl.anonymous" "util/sasl/anonymous.lua" | |
491
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
130 VerseModule "verse.util.sasl.oauthbearer" "util/sasl/oauthbearer.lua" |
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
131 |
493 | 132 VerseModule "verse.client" "client.lua" |
491
edf078a58f25
squishy: Update for prosody.* namespace
Matthew Wild <mwild1@gmail.com>
parents:
490
diff
changeset
|
133 VerseModule "verse.component" "component.lua" |
493 | 134 VerseModule "verse.bosh" "bosh.lua" |
0 | 135 |
503
395ae8df5a9e
squishy: Move bit fallback module out of Prosody namespace
Kim Alvefur <zash@zash.se>
parents:
500
diff
changeset
|
136 if GetOption "internal-bit-module" then |
395ae8df5a9e
squishy: Move bit fallback module out of Prosody namespace
Kim Alvefur <zash@zash.se>
parents:
500
diff
changeset
|
137 Module "bit" "libs/bit.lua" |
395ae8df5a9e
squishy: Move bit fallback module out of Prosody namespace
Kim Alvefur <zash@zash.se>
parents:
500
diff
changeset
|
138 end |
395ae8df5a9e
squishy: Move bit fallback module out of Prosody namespace
Kim Alvefur <zash@zash.se>
parents:
500
diff
changeset
|
139 |
0 | 140 -- Main verse file |
141 Main "init.lua" |