AtlatestRepositorysigil-websocket
sigil-websocket / treepackage.sgl
1
;;; sigil-websocket - WebSocket protocol library2
;;;3
;;; Provides RFC 6455 framing plus both client and server surfaces.4
;;; Client side: ws-connect for ws:// or wss:// connections. Server5
;;; side: HTTP-Upgrade handshake helpers + unmasked frame encoders so6
;;; a listener can accept WebSocket connections and relay text/binary7
;;; messages to its own connection-loop.9
(package10
name: "sigil-websocket"11
version: "0.10.3"12
sigil: "^0.17"13
description: "WebSocket protocol library — client + server, with TLS"14
url: "https://codeberg.org/sigil/sigil-websocket"15
license: "BSD-3-Clause"16
authors: (list "David Wilson <[email protected]>")18
configs: (list19
(config20
name: 'dev21
output-dir: "build/dev"22
debug?: #t23
optimize: 0)24
(config25
name: 'release26
output-dir: "build/release"27
debug?: #f28
optimize: 2))30
dependencies: (list31
(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
;; sigil-socket / sigil-tls / sigil-crypto back the NATIVE WebSocket34
;; transport only; the browser path uses sigil-wasm-net. mbedTLS can't35
;; build for wasm32-wasi, so gate these native-only deps out of the36
;; `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)))41
dev-dependencies: (list42
(from-git url: "codeberg:sigil/sigil" package: "sigil-test" version: "^0.17")43
(from-git url: "codeberg:sigil/sigil" package: "sigil-test-runner" version: "^0.17"))45
tasks: (list46
(task47
name: 'build48
description: "Compile sigil-websocket modules"49
steps: (list50
(compile-sigil-modules sources: "src/**/*.sgl"51
output-dir: (config-output-subdir "lib"))))))