Commit66faf5e5Recorded13 Jul 2026Repositorysigil-irc

package: gate native-only deps (socket/tls/crypto) out of the web build

Message

sigil-socket / sigil-tls / sigil-crypto back the native TCP/TLS client (connection.sgl). Their C — mbedTLS in particular — cannot build for wasm32-wasi (platformutil.c: "No mbedtlsms_time available"), so any wasm consumer of sigil-irc (via (sigil irc websocket)) failed to link. The browser path needs none of them: the (sigil socket)/(sigil tls)/ (sigil crypto) modules resolve from the wasm runtime. Gate the three native-only deps to configs '(dev release) so the web build skips them, matching the sigil-graphics / motif native-only-dep pattern. Native dev/release builds are unchanged (still pull all three).

Changed
 packages/sigil-irc/package.sgl | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
Diff
packages/sigil-irc/package.sglmodified
@@ -14,10 +14,18 @@
14
license: "BSD-3-Clause"
15
authors: (list "David Wilson <[email protected]>")
16
+17
;; sigil-socket / sigil-tls / sigil-crypto are NATIVE-ONLY deps of the
+18
;; native TCP/TLS client (connection.sgl). Their C (mbedTLS in particular)
+19
;; cannot build for wasm32-wasi, and on the `web` build the browser path
+20
;; ((sigil irc websocket) → (sigil websocket) → sigil-wasm-net) needs none
+21
;; of them — the (sigil socket)/(sigil tls)/(sigil crypto) modules resolve
+22
;; from the wasm runtime. Config-conditional gating excludes them from the
+23
;; `web` build so it doesn't try to compile mbedTLS. (See sigil-graphics /
+24
;; motif for the same native-only-dep gating pattern.)
25
dependencies: (list
18
(from-git url: "codeberg:sigil/sigil-socket" version: "^0.16")
19
(from-git url: "codeberg:sigil/sigil-tls" version: "^0.16")
20
(from-git url: "codeberg:sigil/sigil-crypto" version: "^0.16"))
+26
(from-git url: "codeberg:sigil/sigil-socket" version: "^0.16" configs: '(dev release))
+27
(from-git url: "codeberg:sigil/sigil-tls" version: "^0.16" configs: '(dev release))
+28
(from-git url: "codeberg:sigil/sigil-crypto" version: "^0.16" configs: '(dev release)))
29
30
dev-dependencies: (list
31
(from-git url: "codeberg:sigil/sigil" package: "sigil-test" version: "^0.17")