noir-lang / noir

Noir is a domain specific language for zero knowledge proofs
https://noir-lang.org
Apache License 2.0
884 stars 195 forks source link

Allow compilation with dependencies from WASM #952

Closed kobyhallx closed 1 year ago

kobyhallx commented 1 year ago

Problem

I can compile Noir program in JavaScript with noir_wasm but I can not use dep::std or any other dependency because compiler would not resolve it.

Proposed solution

Add the ability to "declare" non-local crate while compiling

Alternatives considered

Using flat file technique and in-line all dependencies into a single file.

Additional context

No response

kobyhallx commented 1 year ago

Relates to https://github.com/noir-lang/noir/issues/888#issuecomment-1453388917