Skip to content

feat: import core logic in cli from nargo crate#1142

Merged
kevaundray merged 1 commit intomasterfrom
nargo-core-ops
Apr 12, 2023
Merged

feat: import core logic in cli from nargo crate#1142
kevaundray merged 1 commit intomasterfrom
nargo-core-ops

Conversation

@TomAFrench
Copy link
Copy Markdown
Member

Related issue(s)

Related to #1063

Description

Summary of changes

This PR adds the concept of "ops" to nargo which are going to be the core operations which will be shared between the CLI and TS packages (e.g. compile, execute, prove, verify, preprocess, codegen_verifier and eventually test).

I've pushed this PR up a little early to unblock #1126 (comment). Trying to migrate those two functions across to nargo would result in a huge number of merge conflicts, etc. (as well as needing a fair amount of boilerplate copied from this PR) where it would be simpler to merge this first and then fixup on that PR.

Dependency additions / changes

Test additions / changes

Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • I have linked this PR to the issue(s) that it resolves.
  • I have reviewed the changes on GitHub, line by line.
  • I have ensured all changes are covered in the description.

Documentation needs

  • This PR requires documentation updates when merged.

Additional context

@TomAFrench TomAFrench requested review from kevaundray and phated April 12, 2023 15:35
@kevaundray kevaundray added this pull request to the merge queue Apr 12, 2023
Merged via the queue into master with commit 753a272 Apr 12, 2023
@kevaundray kevaundray deleted the nargo-core-ops branch April 12, 2023 18:32
TomAFrench added a commit that referenced this pull request Apr 12, 2023
* master:
  feat: import core logic in cli from `nargo` crate (#1142)
  chore: enforce `clippy::semicolon_if_nothing_returned` linting rule (#1139)
  chore: borrow instead of cloning witness vectors in IR gen (#1127)
TomAFrench added a commit that referenced this pull request Apr 13, 2023
* master:
  feat(nargo)!: define preprocessed artifacts for programs/contracts (#1126)
  feat: import core logic in cli from `nargo` crate (#1142)
  chore: enforce `clippy::semicolon_if_nothing_returned` linting rule (#1139)
  chore: borrow instead of cloning witness vectors in IR gen (#1127)
  fix: compiler identifying imported functions as being part of a contract (#1112)
  feat: Add new `Vec` type to frontend (#1103)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants