Skip to content

Commit

Permalink
Move Foil to its own crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
porcuquine committed Aug 9, 2023
1 parent 9f93634 commit 94453ad
Show file tree
Hide file tree
Showing 11 changed files with 897 additions and 74 deletions.
120 changes: 72 additions & 48 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ test-log = "0.2.12"
[workspace]
resolver = "2"
members = ["clutch",
"fcomm", "lurk-macros"
"fcomm", "lurk-macros", "foil"
]

# Dependencies that should be kept in sync through the whole workspace
Expand Down
26 changes: 26 additions & 0 deletions foil/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
name = "foil"
version = "0.1.0"
edition = "2021"
authors = ["porcuquine <porcuquine@gmail.com>"]
description = "Flat Optimization Intermediate Language"
repository = "https://github.com/lurk-lab/lurk-rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = { workspace = true }
bellperson = { workspace = true }
ff = { workspace = true }
indexmap = { version = "1.9.3", features = ["rayon"] }
generic-array = "0.14.7"
lurk = { path = "../" }
lurk-macros = { path = "../lurk-macros" }
log = { workspace = true }
neptune = { workspace = true, features = ["arity2","arity4","arity8","arity16","pasta","bls"] }
once_cell = { workspace = true }
pasta_curves = { workspace = true, features = ["repr-c", "serde"] }
pretty_env_logger = "0.4"

[dev-dependencies]
env_logger = "*"
test-log = "0.2.12"
4 changes: 2 additions & 2 deletions src/foil/circuit.rs → foil/src/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use std::fmt::Debug;

use bellperson::{gadgets::num::AllocatedNum, Circuit, ConstraintSystem, SynthesisError};

use crate::field::LurkField;
use crate::foil::{Id, MappedFoil, MetaData, MetaMapper};
use crate::{Id, MappedFoil, MetaData, MetaMapper};
use lurk::field::LurkField;

pub trait Relation<F: LurkField>: Debug {
fn synthesize<CS: ConstraintSystem<F>>(
Expand Down
Loading

0 comments on commit 94453ad

Please sign in to comment.