bson-rust
bson-rust copied to clipboard
RUST-504 ObjectId::new() doesn't work on wasm
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.
I filed RUST-504 to track the status of this. Thank you for filing an issue!
When will this issue will be resolved? It's been so long...
This was fixed in the 2.6.0 release.