Skip to content

Commit 736d790

Browse files
committed
Merge remote-tracking branch 'origin/main' into generic-mpt-extraction
2 parents d6cd3ad + cc50651 commit 736d790

19 files changed

+577
-403
lines changed

devenv.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ in
5555
}];
5656
};
5757

58-
scripts.db.exec = "psql storage -h localhost -p ${builtins.toString config.env.PGPORT}";
58+
scripts = {
59+
# Open a shell to the DB
60+
db.exec = "psql storage -h localhost -p ${builtins.toString config.env.PGPORT}";
61+
62+
# Wipe out the database
63+
reset-db.exec = "rm -rf ${config.env.DEVENV_STATE}/postgres";
64+
};
5965

6066
# https://devenv.sh/languages/
6167
languages.rust = {

mp2-v1/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ serde.workspace = true
2323
mp2_common = { path = "../mp2-common" }
2424
recursion_framework = { path = "../recursion-framework" }
2525
ryhope = { path = "../ryhope" }
26+
parsil = { path = "../parsil" }
2627
verifiable-db = { path = "../verifiable-db" }
2728
derive_more = "0.99.18"
2829
hex.workspace = true
2930
serde_json.workspace = true
31+
bb8 = "0.8.5"
32+
bb8-postgres = "0.8.1"
33+
tokio-postgres = "0.7.12"
34+
futures = "0.3.30"
3035

3136
[dev-dependencies]
3237
alloy.workspace = true

mp2-v1/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
//! Circuits for v1 of Lagrange Proof Network (LPN)
2-
2+
#![allow(incomplete_features)]
33
// Add this to allow generic const expressions, e.g. `PAD_LEN(NODE_LEN)`.
44
#![feature(generic_const_exprs)]
55
// Add this so we don't need to always specify const generic in generic
66
// parameters (i.e. use "_")
77
#![feature(generic_arg_infer)]
8+
// stylistic feature
9+
#![feature(async_closure)]
810
use mp2_common::mpt_sequential::PAD_LEN;
911

1012
pub const MAX_BRANCH_NODE_LEN: usize = 532;
@@ -21,6 +23,7 @@ pub mod contract_extraction;
2123
pub mod final_extraction;
2224
pub mod indexing;
2325
pub mod length_extraction;
26+
pub mod query;
2427
pub mod values_extraction;
2528

2629
#[cfg(test)]

mp2-v1/src/query/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub mod planner;

0 commit comments

Comments
 (0)