ZoKrates icon indicating copy to clipboard operation
ZoKrates copied to clipboard

Publish the ZoKrates interpreter and backend to crates.io

Open Voxelot opened this issue 5 years ago • 10 comments

It'd be nice if part of the CI process not only built the docker images but also pushed to crates.io. This would make it far more convenient to use zokrates beyond CLI/Docker wrappers.

Docs for this are available here: https://doc.rust-lang.org/cargo/reference/publishing.html

Voxelot avatar Apr 02 '19 07:04 Voxelot

Interesting. Do you have a specific use case in mind?

Schaeff avatar Apr 02 '19 13:04 Schaeff

I'd like to be able to include zokrates core as a dependency from crates.io into rust-based webservice (e.g. actix). That way I can build a localized client-server app for performing a variety of proof generations for several different circuits.

A second usecase I'm thinking of would be including zokrates core into a project which wraps the APIs using rustwasm bindings for making it more browser compatible.

Voxelot avatar Apr 03 '19 19:04 Voxelot

So you're mostly interested in running and proving, not the compiler itself, correct?

Schaeff avatar Apr 04 '19 18:04 Schaeff

Yeah, no need to do on-the-fly compilation - proof generation would be the main use-case I have in mind. Although I'm sure publishing ZoKrates modules would be beneficial to others with different use-cases.

Voxelot avatar Apr 05 '19 06:04 Voxelot

Right, that's what I thought. In that case a good start would be to extract the interpreter so that we can publish it on Crates.io.

Schaeff avatar Apr 05 '19 09:04 Schaeff

Why not just publish the zokrates_core package as-is? Wouldn't this include the interpreter?

Voxelot avatar Apr 07 '19 01:04 Voxelot

Yes it would, but in my opinion it's not quite ready to be used externally as a lib and it would be less work to make the interpreter ready as it's much smaller.

Schaeff avatar Apr 09 '19 21:04 Schaeff

What is the status of this issue? Is the help wanted still actual?

alv-around avatar Apr 25 '22 17:04 alv-around

Publishing to Crates.io would also have the upside that the docs would be easily available on docs.rs. Though for that reason it might be good to just publish all the packages. That way all the documentation would be available and could be linked to.

titaniumtraveler avatar Aug 29 '23 09:08 titaniumtraveler