AtlatestRepositorysigil-websocket

sigil-websocket / treepackage.sgl

1;;; sigil-websocket - WebSocket protocol library
2;;;
3;;; Provides RFC 6455 framing plus both client and server surfaces.
4;;; Client side: ws-connect for ws:// or wss:// connections. Server
5;;; side: HTTP-Upgrade handshake helpers + unmasked frame encoders so
6;;; a listener can accept WebSocket connections and relay text/binary
7;;; messages to its own connection-loop.
8
9(package
10 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: (list
19 (config
20 name: 'dev
21 output-dir: "build/dev"
22 debug?: #t
23 optimize: 0)
24 (config
25 name: 'release
26 output-dir: "build/release"
27 debug?: #f
28 optimize: 2))
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 ;; 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)))
41 dev-dependencies: (list
42 (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: (list
46 (task
47 name: 'build
48 description: "Compile sigil-websocket modules"
49 steps: (list
50 (compile-sigil-modules sources: "src/**/*.sgl"
51 output-dir: (config-output-subdir "lib"))))))