o1-labs / ocaml-gen

This crate provides automatic generation of OCaml bindings. Refer to the rustdoc for more information.
https://o1-labs.github.io/ocaml-gen
Apache License 2.0
11 stars 5 forks source link

Do not add @@boxed on records with 2+fields. #9

Closed rbonichon closed 1 year ago

rbonichon commented 1 year ago

Records with 2+ fields will never be unboxed in OCaml. The added annotation just adds noise, whereas it may be useful in the case of single-field records.

mimoo commented 1 year ago

thanks for the improvement btw :) released a new version (0.1.1): https://crates.io/crates/ocaml-gen