capnp-ocaml icon indicating copy to clipboard operation
capnp-ocaml copied to clipboard

OCaml code generator plugin for the Cap'n Proto serialization framework

Results 6 capnp-ocaml issues
Sort by recently updated
recently updated
newest added

Compiling ``` @0xafda4797418def92; const listlist :List(List(UInt8)) = [[3]]; ``` Leads to generated code with a syntax error (partially replicated here): ``` module Reader = struct type array_t = ro MessageWrapper.ListStorage.t...

This seems to be an OCaml bug: https://github.com/ocaml/ocaml/issues/10571 However, https://github.com/ocaml/ocaml/issues/10571#issuecomment-905938754 mentions a possible work-around: > The main reason why the frame needs to be enormous seems to be the coercion...

If you define a schema with `List(Interface)` then: 1. The types are wrong: it gives e.g. ```val a_get_list : t -> [`Interface_xxx] list``` instead of ```val a_get_list : t ->...

It would be really nice to be able to use this in the browser. Right now this doesn't build with `js_of_ocaml`, because of at least the dependency on `stdint`, though...

enhancement

The README mentions using Bigarray as message storage, but I haven't been able to find any examples in this repo or elsewhere. I've implemented a module using `Bigstring` which satisfies...

Test case: ``` let open Examples.Api.Builder in let p = Payload.init_root () in let content = Payload.content_get p in Payload.cap_table_init p 1 |> ignore; TestArgs.params_init content 1 |> ignore; Alcotest.(check...