8 releases (4 stable)

new 1.2.0 Sep 4, 2024
1.2.0-rc2 Aug 29, 2024
1.0.1 Jul 23, 2024
0.0.2-test Jul 12, 2024

#179 in Magic Beans

Download history 182/week @ 2024-07-12 299/week @ 2024-07-19 210/week @ 2024-07-26 534/week @ 2024-08-02 1648/week @ 2024-08-09 785/week @ 2024-08-16 1467/week @ 2024-08-23 1326/week @ 2024-08-30

5,324 downloads per month
Used in 2 crates

MIT/Apache

22KB
374 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–12MB
~126K SLoC