sp1-build

Crates.iosp1-build
lib.rssp1-build
version3.2.1
sourcesrc
created_at2024-07-12 19:02:17.643722
updated_at2024-11-07 23:09:48.526528
descriptionBuild an SP1 program.
homepage
repositoryhttps://github.com/succinctlabs/sp1
max_upload_size
id1301011
size25,397
Matt Stam (mattstam)

documentation

README

sp1-build

Lightweight crate used to build SP1 programs. Internal crate that is exposed to users via sp1-cli.

Exposes build_program, which builds an SP1 program in the local environment or in a docker container with the specified parameters from BuildArgs.

Usage

use sp1_build::build_program;

build_program(&BuildArgs::default(), Some(program_dir));

Potential Issues

If you attempt to build a program with Docker that depends on a local crate, and the crate is not in the current workspace, you may run into issues with the docker build not being able to find the crate, as only the workspace root is mounted.

error: failed to load manifest for dependency `...`

To fix this, you can either:

  1. Move the program into the workspace that contains the crate.
  2. Build the crate locally instead.
Commit count: 1466

cargo fmt