Matter smart home protocol implementation for OCaml
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

wal, block, sse, zephyr: remove [mutable] from never-reassigned fields

Warning 69 (unused-field, mutable-never-assigned). Four independent
record fields were flagged as mutable but the code only mutates their
referents in place, never rebinds the record slot itself:

- ocaml-wal/lib/wal.ml: [t.file] (the Eio file resource; methods call
Eio.File.pwrite_all etc., the slot is set once at open time).
- ocaml-block/lib/block.ml: [Memory.state.data] (the backing bytes,
written via Bytes.blit_string; [Bytes.t] is already mutable).
- ocaml-sse/lib/sse.ml: [Parser.t.data_buf] (a Buffer.t, written via
Buffer.add_*; the slot never changes).
- ocaml-zephyr/lib/zephyr.ml: drop [mode : Read | Write] entirely —
set at open-time, read nowhere. The open_read / open_write
constructors already distinguish the two call shapes, so mode
tracking was redundant.

+3 -2
+1 -1
dune-project
··· 1 - (lang dune 3.0) 1 + (lang dune 3.21) 2 2 3 3 (name matter) 4 4
+2 -1
matter.opam
··· 11 11 license: "MIT" 12 12 tags: ["org:blacksun" "system" "network"] 13 13 depends: [ 14 - "dune" {>= "3.0"} 14 + "dune" {>= "3.21"} 15 15 "ocaml" {>= "4.14"} 16 16 "crypto" {>= "0.1"} 17 17 "crypto-ec" {>= "0.1"} ··· 45 45 "@doc" {with-doc} 46 46 ] 47 47 ] 48 + x-maintenance-intent: ["(latest)"] 48 49 x-quality-build: "2026-04-15" 49 50 x-quality-fuzz: "2026-04-15" 50 51 x-quality-test: "2026-04-15"