Skip to content

Commit

Permalink
fix(Node.js): allow compilation of mls-rs-core with all-features
Browse files Browse the repository at this point in the history
  • Loading branch information
nicdard committed Sep 24, 2024
1 parent f3db9b2 commit d792356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mls-rs-core/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extern "C" {
fn date_now() -> f64;
}

#[cfg(all(target_arch = "wasm32", feature = "node"))]
#[cfg(all(target_arch = "wasm32", feature = "node", not(feature = "web")))]
#[wasm_bindgen(inline_js = r#"
module.exports.date_now = function() {
return Date.now();
Expand Down

0 comments on commit d792356

Please sign in to comment.