fschutt / printpdf

An easy-to-use library for writing PDF in Rust
https://docs.rs/printpdf/
MIT License
777 stars 95 forks source link

add feature to make use of js-sys optional #162

Closed urlordjames closed 5 months ago

urlordjames commented 7 months ago

Resolves #157. This doesn't add a feature for reproducible output on all platforms, it's strictly for disabling js-sys on wasm.

urlordjames commented 7 months ago

I'm curious as to the rationale for re-implementing OffsetDateTime with js-sys instead of using time's implementation. I believe time has a wasm-bindgen feature that already implements the desired behavior right?

fschutt commented 5 months ago

I'm curious as to the rationale for re-implementing OffsetDateTime with js-sys instead of using time's implementation. I believe time has a wasm-bindgen feature that already implements the desired behavior right?

I probably didn't know about that feature at the time.