-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sexp_of cenum attribute, use sexplib0 #316
base: main
Are you sure you want to change the base?
Conversation
The sexp_of_* functions now return Sexplib0.Sexp.t instead of Sexplib.Sexp.t. The cenum attribute [@@sexp_of] is like [@@sexp] except it only produces the sexp_of* function. This allows for generating sexp_of converters without depending on the full sexplib library.
I found it wasn't too difficult to use sexplib0 instead of sexplib in cstruct-sexp so I went ahead with that. I think it might be possible to entirely move to sexplib0 over sexplib.... |
apparently it's not available at all?!
I can't quite figure out macos CI. I note we use avsm/setup-ocaml@v1 -- should we use ocaml/setup-ocaml@v2 instead? And how to migrate? |
taking #315 into account, to fix the CI here, maybe we should remove ocaml-migrate-parsetree dependency? |
And no longer ocaml-migrate-parsetree.
the macos-latest target seems to be arm64...
The
sexp_of_*
functions now returnSexplib0.Sexp.t
instead ofSexplib.Sexp.t
. Thecenum
attribute[@@sexp_of]
is like[@@sexp]
except it only produces thesexp_of*
function. This allows for generatingsexp_of
converters without depending on the full sexplib library.