Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: delete the compiler from noir-compiler #3959

Merged
merged 3 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions noir/compiler/wasm/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
noir-script/target
dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,13 @@ import { LogFn } from '@aztec/foundation/log';
import { Command } from 'commander';
import { dirname } from 'path';

/**
* CLI options for configuring behavior
*/
interface Options {
// eslint-disable-next-line jsdoc/require-jsdoc
outdir: string;
// eslint-disable-next-line jsdoc/require-jsdoc
typescript: string | undefined;
// eslint-disable-next-line jsdoc/require-jsdoc
interface: string | undefined;
// eslint-disable-next-line jsdoc/require-jsdoc
compiler: string | undefined;
}

/**
*
*/
export function addNoirCompilerCommanderActions(program: Command, log: LogFn = () => {}) {
addCodegenCommanderAction(program, log);
}

/**
*
*/
export function addCompileCommanderAction(program: Command, log: LogFn = () => {}) {
program
.command('compile')
.argument('<project-path>', 'Path to the bin or Aztec.nr project to compile')
.option('-o, --outdir <path>', 'Output folder for the binary artifacts, relative to the project path', 'target')
.option('-ts, --typescript <path>', 'Optional output folder for generating typescript wrappers', undefined)
.option('-i, --interface <path>', 'Optional output folder for generating an Aztec.nr contract interface', undefined)
.option('-c --compiler <string>', 'Which compiler to use. Either nargo or wasm.', 'wasm')
.description('Compiles the Noir Source in the target project')

.action(async (projectPath: string, options: Options) => {
const { compileNoir } = await import('./compile_noir.js');
await compileNoir(projectPath, options, log);
});
}

/**
*
*/
Expand Down
133 changes: 0 additions & 133 deletions yarn-project/noir-compiler/src/cli/compile_noir.ts

This file was deleted.

100 changes: 0 additions & 100 deletions yarn-project/noir-compiler/src/compile/nargo.ts

This file was deleted.

This file was deleted.

Loading