Commit0314e143Recorded13 Jul 2026Repositorysigil-websocket

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

Message

sigil-socket / sigil-tls / sigil-crypto back the NATIVE WebSocket transport; the browser path uses sigil-wasm-net. mbedTLS cannot build for wasm32-wasi, so a wasm consumer of (sigil websocket) failed to link. Gate the three native-only deps to configs '(dev release) so the web build skips them (the modules resolve from the wasm runtime there). Native dev/release builds still pull all three.

Changed
 package.sgl | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
Diff
package.sglmodified
@@ -30,9 +30,13 @@
30
dependencies: (list
31
(from-git url: "codeberg:sigil/sigil" package: "sigil-stdlib" version: "^0.17")
32
(from-git url: "codeberg:sigil/sigil" package: "sigil-wasm-net" version: "^0.17")
33
(from-git url: "codeberg:sigil/sigil-socket" version: "^0.16.0")
34
(from-git url: "codeberg:sigil/sigil-tls" version: "^0.16")
35
(from-git url: "codeberg:sigil/sigil-crypto" version: "^0.16"))
+33
;; sigil-socket / sigil-tls / sigil-crypto back the NATIVE WebSocket
+34
;; transport only; the browser path uses sigil-wasm-net. mbedTLS can't
+35
;; build for wasm32-wasi, so gate these native-only deps out of the
+36
;; `web` build (the modules resolve from the wasm runtime there).
+37
(from-git url: "codeberg:sigil/sigil-socket" version: "^0.16.0" configs: '(dev release))
+38
(from-git url: "codeberg:sigil/sigil-tls" version: "^0.16" configs: '(dev release))
+39
(from-git url: "codeberg:sigil/sigil-crypto" version: "^0.16" configs: '(dev release)))
40
41
dev-dependencies: (list
42
(from-git url: "codeberg:sigil/sigil" package: "sigil-test" version: "^0.17")