Skip to content

Commit

Permalink
Merge pull request #1023 from Zokrates/fix-compile-config
Browse files Browse the repository at this point in the history
Add serde `default` attribute to compile config to accept partial objects
  • Loading branch information
Schaeff authored Oct 3, 2021
2 parents 5f2d651 + 3cf08aa commit 264e4d3
Show file tree
Hide file tree
Showing 4 changed files with 440 additions and 26 deletions.
2 changes: 2 additions & 0 deletions zokrates_core/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ impl fmt::Display for CompileErrorInner {

#[derive(Debug, Default, Serialize, Deserialize, Clone)]
pub struct CompileConfig {
#[serde(default)]
pub allow_unconstrained_variables: bool,
#[serde(default)]
pub isolate_branches: bool,
}

Expand Down
Loading

0 comments on commit 264e4d3

Please sign in to comment.