-
Notifications
You must be signed in to change notification settings - Fork 31
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
errors using the latest beta #115
Comments
Thanks! The first issue is an easy fix (I just pushed a commit for that one), but the bounds issue is a little more complicated. The #[derive(Debug, Clone, ocaml::ToValue, ocaml::FromValue, ocaml_gen::Struct)]
pub struct CamlScalarChallenge<CamlF>(pub CamlF)
where
CamlF: ocaml::ToValue + ocaml::FromValue; |
Yeah I wanted to avoid that if possible so I reverted back to latest stable. I'm wondering why it's a complicated issue to fix now :o (as it was successfully matching serde/debug/display/etc. behavior before) |
It's likely not too hard of problem to solve, but macros in Rust are hard to debug. I think I'll be able to get it to match the expected behavior but am pretty low on time at the moment! |
I just implemented this for another project here: https://github.com/o1-labs/proof-systems/blob/mimoo/snarky2/kimchi/snarky-deriver/src/lib.rs#L509 if this can help. Basically the strategy was to look at all the fields of the struct, collect their types in a hashset, and add the bounds on them. |
Using the latest beta (4) I get the following errors:
this one seems to be internal to ocaml-rs? Not sure
I'm also now getting errors that looks like the bounds are not added by the deriver:
the code it points to, that used to work:
The text was updated successfully, but these errors were encountered: