Skip to content

Commit

Permalink
👍 add binary_bytes driver
Browse files Browse the repository at this point in the history
  • Loading branch information
akabe committed Aug 9, 2021
1 parent f7b1299 commit d6c56dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ppx/ppx_deriving_binary.ml
Expand Up @@ -39,3 +39,14 @@ let () =
~type_decl_str:(Encoder.type_decl_str ~deriver)
~type_decl_sig:Encoder.type_decl_sig
())

let () =
let deriver = "binary_bytes" in
register (create "binary_bytes"
~type_decl_str:(fun ~options ~path type_decls ->
Encoder.type_decl_str ~deriver ~options ~path type_decls
@ Decoder.type_decl_str ~deriver ~options ~path type_decls)
~type_decl_sig:(fun ~options ~path type_decls ->
Encoder.type_decl_sig ~options ~path type_decls
@ Decoder.type_decl_sig ~options ~path type_decls)
())

0 comments on commit d6c56dd

Please sign in to comment.