18 releases (11 stable)

3.4.0 Nov 29, 2024
3.1.0 Oct 30, 2024
2.0.0 Sep 13, 2024
1.2.0 Sep 4, 2024
0.0.2-test Jul 12, 2024

#20 in #docker-build

Download history 1766/week @ 2024-08-28 1131/week @ 2024-09-04 1188/week @ 2024-09-11 1363/week @ 2024-09-18 2121/week @ 2024-09-25 2499/week @ 2024-10-02 2430/week @ 2024-10-09 2058/week @ 2024-10-16 1446/week @ 2024-10-23 1994/week @ 2024-10-30 2256/week @ 2024-11-06 1894/week @ 2024-11-13 2290/week @ 2024-11-20 2738/week @ 2024-11-27 4487/week @ 2024-12-04 2951/week @ 2024-12-11

13,065 downloads per month
Used in 2 crates

MIT/Apache

25KB
413 lines

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.

Dependencies

~3–11MB
~125K SLoC