Native CBOR codec with type-safe combinators
0
fork

Configure Feed

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

cbor: rename test_cbor_rw to test_binary, drop explicit modules stanza

- Rename test/test_cbor_rw.{ml,mli} to test/test_binary.{ml,mli} to
match the lib/binary.ml rename (E605).
- Drop the (modules ...) field from fuzz/dune (E523).

12 Obj.magic usages in cbor.ml remain — they encode the record codec's
CPS continuation walk (extracting names/decoders without having a value
in hand). A refactor to explicit field-list + Dict-based assembly is
tracked as follow-up work; the Obj.magic calls are isolated to codec
construction and never touched at runtime.

+2 -3
-1
fuzz/dune
··· 10 10 11 11 (executable 12 12 (name fuzz) 13 - (modules fuzz fuzz_cbor) 14 13 (libraries cbor bytesrw alcobar)) 15 14 16 15 (rule
+1 -1
test/test.ml
··· 1 1 let () = 2 - Alcotest.run "cbor" [ Test_cbor.suite; Test_value.suite; Test_cbor_rw.suite ] 2 + Alcotest.run "cbor" [ Test_cbor.suite; Test_value.suite; Test_binary.suite ]
+1 -1
test/test_binary.ml
··· 1 - let suite = ("cbor_rw", [ Alcotest.test_case "noop" `Quick ignore ]) 1 + let suite = ("binary", [ Alcotest.test_case "noop" `Quick ignore ])