Skip to content

Commit

Permalink
Build_info/Unit_info: support for sexp serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon authored and OlivierNicole committed Aug 1, 2024
1 parent 3204c33 commit 1d7a169
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/lib/build_info.ml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ let parse s =
in
Some t

let to_map : t -> string StringMap.t = Fun.id

let of_map : string StringMap.t -> t = Fun.id

exception
Incompatible_build_info of
{ key : string
Expand Down
4 changes: 4 additions & 0 deletions compiler/lib/build_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ val to_string : t -> string

val parse : string -> t option

val to_map : t -> string StringMap.t

val of_map : string StringMap.t -> t

val with_kind : t -> kind -> t

exception
Expand Down

0 comments on commit 1d7a169

Please sign in to comment.