16 releases (9 stable)

new 3.2.1 Nov 7, 2024
3.1.0 Oct 30, 2024
3.0.0-rc1 Sep 16, 2024
2.0.0 Sep 13, 2024
0.0.2-test Jul 12, 2024

#890 in Magic Beans

Download history 256/week @ 2024-07-18 203/week @ 2024-07-25 491/week @ 2024-08-01 1567/week @ 2024-08-08 830/week @ 2024-08-15 1193/week @ 2024-08-22 1754/week @ 2024-08-29 933/week @ 2024-09-05 1298/week @ 2024-09-12 1377/week @ 2024-09-19 2456/week @ 2024-09-26 2375/week @ 2024-10-03 2435/week @ 2024-10-10 1802/week @ 2024-10-17 1495/week @ 2024-10-24 2131/week @ 2024-10-31

8,342 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–15MB
~126K SLoC