mongodb / bson-rust

Encoding and decoding support for BSON in Rust
MIT License
400 stars 132 forks source link

RUST-504 Use js timestamps when generating objectids #406

Closed abr-egn closed 1 year ago

abr-egn commented 1 year ago

RUST-504 / RUST-1130

This adds support for using the Javascript environment timestamp when constructing an ObjectId when compiled to wasm, and a simple test case and the supporting machinery. This supersedes #405.