Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
fix: Allow async functions without send on async trait
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed May 22, 2023
1 parent 4c04a79 commit 2fcb939
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
12 changes: 4 additions & 8 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ js = [
"dep:getrandom",
"wasmer/js-default"
]

[patch.crates-io]
acvm = { git = "https://github.com/noir-lang/acvm", rev = "8d6ecbf2fe180de5809f6e7cbf7b5110d8c9294d" }
2 changes: 1 addition & 1 deletion src/acvm_interop/common_reference_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use acvm::{acir::circuit::Circuit, async_trait, CommonReferenceString};
use crate::{composer::Composer, BackendError, Barretenberg};

// TODO(#185): Ensure CRS download works in JS
#[async_trait]
#[async_trait(?Send)]
impl CommonReferenceString for Barretenberg {
type Error = BackendError;

Expand Down
2 changes: 1 addition & 1 deletion src/composer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{crs::CRS, Barretenberg, Error, FIELD_BYTES};

const NUM_RESERVED_GATES: u32 = 4; // this must be >= num_roots_cut_out_of_vanishing_polynomial (found under prover settings in barretenberg)

#[async_trait]
#[async_trait(?Send)]
pub(crate) trait Composer {
fn get_circuit_size(&self, constraint_system: &ConstraintSystem) -> Result<u32, Error>;

Expand Down

0 comments on commit 2fcb939

Please sign in to comment.