An example of how to use box2d with Risc0
First, make sure [rustup] is installed. The
[rust-toolchain.toml][rust-toolchain] file will be used by cargo to
automatically install the correct version.
To build all methods and execute the method within the zkVM, run the following command:
cargo runproject_name
├── Cargo.toml
├── host
│ ├── Cargo.toml
│ └── src
│ └── main.rs <-- [Host code goes here]
└── methods
├── Cargo.toml
├── build.rs
├── guest
│ ├── Cargo.toml
│ └── src
│ └── method_name.rs <-- [Guest code goes here]
└── src
└── lib.rs