bson-rust icon indicating copy to clipboard operation
bson-rust copied to clipboard

RUST-504 ObjectId::new() doesn't work on wasm

Open sinhpham opened this issue 5 years ago • 2 comments

Due to using std::time::SystemTime.

A potential solution is exposing a new_with_timestamp(n_secs_since_unix_epoch: u32) -> Self constructor. People who want to run on wasm can supply their own timestamp.

sinhpham avatar Jul 13 '20 20:07 sinhpham

I filed RUST-504 to track the status of this. Thank you for filing an issue!

patrickfreed avatar Jul 17 '20 22:07 patrickfreed

When will this issue will be resolved? It's been so long...

i11010520 avatar Jul 25 '22 15:07 i11010520

This was fixed in the 2.6.0 release.

abr-egn avatar Oct 20 '23 15:10 abr-egn