Skip to content

Commit 928d402

Browse files
committed
make openvm-build optional
1 parent ff235d7 commit 928d402

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

crates/sdk/Cargo.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ openvm-algebra-circuit = { workspace = true }
1212
openvm-algebra-transpiler = { workspace = true }
1313
openvm-bigint-circuit = { workspace = true }
1414
openvm-bigint-transpiler = { workspace = true }
15-
openvm-build = { workspace = true }
15+
openvm-build = { workspace = true, optional = true }
1616
openvm-ecc-circuit = { workspace = true }
1717
openvm-ecc-transpiler = { workspace = true }
1818
openvm-keccak256-circuit = { workspace = true }
@@ -46,8 +46,13 @@ tracing.workspace = true
4646
itertools.workspace = true
4747
getset.workspace = true
4848

49+
50+
[dev-dependencies]
51+
openvm-build = { workspace = true }
52+
4953
[features]
50-
default = ["parallel"]
54+
default = ["parallel", "build"]
55+
build = ["dep:openvm-build"]
5156
bench-metrics = [
5257
"openvm-circuit/bench-metrics",
5358
"openvm-native-recursion/bench-metrics",

crates/sdk/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use commit::commit_app_exe;
66
use config::AppConfig;
77
use eyre::Result;
88
use keygen::{AggStarkProvingKey, AppProvingKey, AppVerifyingKey};
9+
#[cfg(feature = "build")]
910
use openvm_build::{
1011
build_guest_package, find_unique_executable, get_package, GuestOptions, TargetFilter,
1112
};
@@ -68,6 +69,7 @@ pub type NonRootCommittedExe = VmCommittedExe<SC>;
6869
pub struct Sdk;
6970

7071
impl Sdk {
72+
#[cfg(feature = "build")]
7173
pub fn build<P: AsRef<Path>>(
7274
&self,
7375
guest_opts: GuestOptions,

0 commit comments

Comments
 (0)