Skip to content

Commit

Permalink
workspace tooling overhaul (nexus-xyz#54)
Browse files Browse the repository at this point in the history
* introduce config crate

* dev tools crate

* improve logging

* fix clippy

* add doc comments

* change log target

* update lock file

* improve comments

* error source

* remove merkle memory cli parameter

* remove usage of k from cli
  • Loading branch information
slumber authored Feb 6, 2024
1 parent 1aa4130 commit 94409a4
Show file tree
Hide file tree
Showing 39 changed files with 1,469 additions and 28 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
target

### next line: for us Vim users ;-)
# editors
.*.swp

### next line: for our public-parameters files
*/nexus-public.zst
.config.env
198 changes: 190 additions & 8 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ members = [
"riscv",
"vm",
"tools",
"tools/tools-dev",
"config",
"prover",
"network",
"supernova",
Expand Down
Empty file added config/.rustfmt.toml
Empty file.
20 changes: 20 additions & 0 deletions config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "nexus-config"
authors = { workspace = true }
version = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }
publish = { workspace = true }
keywords = { workspace = true }
categories = { workspace = true }

[dependencies]
serde = { version = "1.0", features = ["derive"] }
config = { version = "0.13.4", default-features = false }
dotenvy = { version = "0.15.7" }

clap = { workspace = true, optional = true }

[features]
clap_derive = ["clap"]
3 changes: 3 additions & 0 deletions config/bases/network.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[network.api]
http_url = "127.0.0.1"
http_port = 8080
3 changes: 3 additions & 0 deletions config/bases/vm.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[vm]
k = 1 # number of NexusVM instructions proved per Nova folding step.
nova_impl = "par" # IVC implementation to be used, should be one of "seq" (sequential), "par" (parallel).
Loading

0 comments on commit 94409a4

Please sign in to comment.