Separate Jet env from Jet trait#351
Separate Jet env from Jet trait#351ivanlele wants to merge 1 commit intoBlockstreamResearch:masterfrom
Conversation
|
It might look large, but most of the changes are in the auto-generated jet implementations and consist mainly of formatting and moving code around. This also raises a question: should we update the Haskell-Rust codegen for these implementations now, or leave it for later? The other changes are relatively few, but nonetheless far more important. |
|
Also, while updating interfaces in some files, I ran cargo fmt on the files I was modifying, so you might notice a few lines that were reformatted as a result. |
Yes. My local test system will not allow merging code if the autogenerated files differ from what's committed here. We will need to update the Haskell-Rust codegen first and then PR here to update the vendored version of libsimplicity. |
|
In 273d347: Also, this commit includes a massive amount of formatting changes to files that are autogenerated and have |
This PR is one of several that will make the
Jettrait object-safe (see #349).It introduces a new trait,
JetEnvironment, which movesc_jet_env,c_jet_ptr, andCJetEnvironmentinto it fromJet.