This is a guide with helpful information for developers who want to contribute to the SP1 project.
You can run the test suite in SP1 core by running the following command:
cd core
cargo test
Debug Constraint Failure
To debug constraint failures, you can use the --features debug
feature alongside --no-default-features
to eliminate the "perf" feature. For example:
RUST_LOG=info RUST_BACKTRACE=1 cargo test syscall::precompiles::edwards::ed_add::tests::test_ed_add_simple --release --features debug --no-default-features -- --nocapture
To build docs locally, run the following commands in the top-level directory:
cargo install mdbook # Installs mdbook locally
mdbook serve # Serves the docs locally