1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

Merge pull request #1078 from Zokrates/missing-feature-attribute

Add missing feature attribute
This commit is contained in:
Thibaut Schaeffer 2021-12-29 18:09:28 +01:00 committed by GitHub
commit 14f282171d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -63,8 +63,8 @@ fn cli_inspect<T: Field, I: Iterator<Item = ir::Statement<T>>>(
let output_file = File::create(&output_path).unwrap();
let mut w = BufWriter::new(output_file);
writeln!(w, "{}", curve)
.and(writeln!(w, "{}", constraint_count))
writeln!(w, "# {}", curve)
.and(writeln!(w, "# {}", constraint_count))
.and(write!(w, "{}", ir_prog))
.map_err(|why| format!("Could not write to `{}`: {}", output_path.display(), why))?;

View file

@ -16,7 +16,9 @@ use rand_0_4::Rng;
use serde::de::DeserializeOwned;
use serde::{Deserialize, Serialize};
use std::io::{Read, Write};
use zokrates_field::{BellmanFieldExtensions, Field};
#[cfg(feature = "bellman")]
use zokrates_field::BellmanFieldExtensions;
use zokrates_field::Field;
#[derive(Serialize)]
pub struct SetupKeypair<V> {