anoma / zkp-compiler-shootout

Evaluating & benchmarking ZKP compilation strategies.
https://anoma.github.io/zkp-compiler-shootout/
GNU General Public License v3.0
120 stars 13 forks source link

Reorganize Rust Structure #2

Closed mariari closed 2 years ago

mariari commented 2 years ago

The current structure of having Sudoku folder with the risc0 code was fine before, however I wish to scale up the repo, and have multiple similar folders per idea. Thus I propose the following folder structure

mariari commented 2 years ago

https://github.com/anoma/zkp-compiler-shootout/commit/9b859126d8d188fcd62bcb12705b1f451980ed5e

Satisfies and modifies the desired structure a bit.

sudoku-halo
├── Cargo.lock
├── Cargo.toml
└── src
    ├── lib.rs
    └── main.rs
sudoku-risc0
├── Cargo.lock
├── Cargo.toml
├── core
│   ├── Cargo.toml
│   └── src
│       └── lib.rs
├── LICENSE
├── methods
│   ├── build.rs
│   ├── Cargo.toml
│   ├── guest
│   │   ├── build.rs
│   │   ├── Cargo.lock
│   │   ├── Cargo.toml
│   │   └── src
│   │       └── bin
│   │           └── multiply.rs
│   └── src
│       └── lib.rs
├── README.md
└── src
    ├── lib.rs
    └── main.rs
src
├── main.rs
└── my_benchmark.rs

I will leave this issue open as I believe each directory should have their own benchmarking library, and exported such that the src/main.rs can run all the benchmarks together under 1 command and folder output.