Crates.io | sp1-build |
lib.rs | sp1-build |
version | 3.4.0 |
source | src |
created_at | 2024-07-12 19:02:17.643722 |
updated_at | 2024-11-29 23:57:56.507561 |
description | Build an SP1 program. |
homepage | |
repository | https://github.com/succinctlabs/sp1 |
max_upload_size | |
id | 1301011 |
size | 25,397 |
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
.
use sp1_build::build_program;
build_program(&BuildArgs::default(), Some(program_dir));
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: