Closed vivianjeng closed 2 months ago
Latest commit: |
550abd0
|
Status: | ✅ Deploy successful! |
Preview URL: | https://51a95524.mopro.pages.dev |
Branch Preview URL: | https://cli.mopro.pages.dev |
I'm still opposed to adding a cli for managing mopro. By doing so we're absorbing the complexity of cargo
and replacing it with out own complexity mopro
. This can be good in some situations, but i think in this case the gains are close enough to zero to make it not worth maintaining.
Basically, if people want to use mopro they'll do it with or without a cli. So IMO it only makes sense to improve the offering mopro itself (like adding react-native, more targets, etc).
That said, I'm not as involved in this project these days, and won't say no to a feature you think is correct. The implementation here looks good.
My idea is like npx create-create-app
it could be very simple
(or at least we build a mopro circom example project)
and people can just cd project
and open a simulator to run a prover
but I just found that the we can still keep these steps (just too complex to do them in one step)
I think cli will be helpful for junior developers or for people who want to try new things and for advanced (circuits) developers we can still keep how to setup in the documentation
yes I agree it will take much effort to maintain if there is any change in mopro we can try to fix the version and make sure the cli works for every update (e.g. with a ci test) or every released version
related: #234
mopro init
: create a rust project through the Rust Setupusers can either specify
--adpater
or--project-name
or choose adapters, project_name after prompsTo get started, follow these steps:
Navigate to your project directory: cd mopro-example-app
Run the following commands to build and run the project: cargo run --bin ios cargo run --bin android
📚 To learn more about mopro, visit: https://zkmopro.org
Happy coding! 🚀