Skip to content

Commit

Permalink
fix(wasm): add std after dependencies (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirasistant authored Apr 28, 2023
1 parent ed4691b commit 55ef8a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/wasm/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ pub fn compile(args: JsValue) -> JsValue {
let path = PathBuf::from(&options.entry_point);
driver.create_local_crate(path, CrateType::Binary);

// We are always adding std lib implicitly. It comes bundled with binary.
add_noir_lib(&mut driver, "std");

for dependency in options.optional_dependencies_set {
add_noir_lib(&mut driver, dependency.as_str());
}

// We are always adding std lib implicitly. It comes bundled with binary.
add_noir_lib(&mut driver, "std");

driver.check_crate(&options.compile_options).unwrap_or_else(|_| panic!("Crate check failed"));

if options.contracts {
Expand Down

0 comments on commit 55ef8a2

Please sign in to comment.