Skip to content

Commit

Permalink
Fix comment regarding macro order (#131)
Browse files Browse the repository at this point in the history
Follow-up for #130.
  • Loading branch information
stefunctional authored Mar 27, 2024
1 parent d54563f commit 73af047
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mls-rs-uniffi/src/config/group_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ impl From<EpochRecord> for mls_rs_core::group::EpochRecord {
}
}

// When building for async, uniffi::export has to be applied _after_
// maybe-async's injection of the async trait. When building for sync,
// the order has to be the opposite.
// When building for async, uniffi::export has to be applied _before_ maybe-async's injection of
// the async trait so that uniffi::export sees the definition before async_trait is expanded. When
// building for sync, the order has to be the opposite so that uniffi::export sees the sync
// definition of the trait.
#[cfg_attr(mls_build_async, uniffi::export(with_foreign))]
#[cfg_attr(mls_build_async, maybe_async::must_be_async)]
#[cfg_attr(not(mls_build_async), maybe_async::must_be_sync)]
Expand Down

0 comments on commit 73af047

Please sign in to comment.