namnc / circom-2-arithc

Circom interpreter to arithmetic circuit description
MIT License
33 stars 7 forks source link

Add default project config and enable CLI configuration #52

Open brech1 opened 3 weeks ago

brech1 commented 3 weeks ago

This issue is related to the Project Usability item in the project overview.

To improve usability we need to create our own CLI argument parsing and remove the existent one in the circom directory. This one has been built around regular circom usage and needs to be removed, along with any configuration we're not using or planning to.

A project configuration struct has to be made, starting from:

struct CompilerConfig {
    /// Circuit input file.
    input: String,
    /// Circuit and report output paths.
    output: String,
}

This will be helpful when using our project as an executable from a command line interface, but can also serve as inspiration if the project is used as a library.

This will also allow us to update the clap dependency.