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.13"
12 sigil: "0.20"
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.21")
32 (from-git url: "codeberg:sigil/sigil" package: "sigil-wasm-net" version: ">=0.21")
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-tls" version: "^0.16" configs: '(dev release))
38 (from-git url: "codeberg:sigil/sigil-crypto" version: "^0.16" configs: '(dev release)))
40 dev-dependencies: (list
41 (from-git url: "codeberg:sigil/sigil" package: "sigil-test" version: ">=0.21")
42 (from-git url: "codeberg:sigil/sigil" package: "sigil-test-runner" version: ">=0.21"))
44 tasks: (list
45 (task
46 name: 'build
47 description: "Compile sigil-websocket modules"
48 steps: (list
49 (compile-sigil-modules sources: "src/**/*.sgl"
50 output-dir: (config-output-subdir "lib"))))))