New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gate js-sys dependency behind 'wasm-bindgen' feature (#496) #499
Conversation
Codecov Report
@@ Coverage Diff @@
## main #499 +/- ##
=======================================
Coverage 99.45% 99.45%
=======================================
Files 70 70
Lines 7167 7169 +2
=======================================
+ Hits 7128 7130 +2
Misses 39 39
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Hey @jhpratt , just wanted to bump and support this PR, we've been using this library in our Wasm projects for its types and this now compiles in a couple of
Would love to see this released in a patch version so that our projects can fetch this with |
I'm getting a build error
The |
No build errors here but I was wondering why my [[package]]
name = "time"
-version = "0.3.11"
+version = "0.3.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72c91f41dcb2f096c05f0873d667dceec1087ce5bcf984ec8ffb19acddbb3217"
+checksum = "74b7cc93fc23ba97fde84f7eea56c55d1ba183f495c6715defdfc7b9cb8c870f"
dependencies = [
"itoa",
+ "js-sys",
"libc",
"num_threads",
"time-macros", |
Good catch Steve, thanks :) I updated the #cfg logic and co-authored, let me know if you have issues. |
6341efb
to
2afc738
Compare
Co-authored-by: stevelr <dev@somecool.net>
@brooksmtownsend The PR has only been open a couple days. I will review it when I get the chance. I am well aware that this broke some things. |
Thanks @xy2iii that latest change works for wasm32-unknown-unknown. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; merging.
This pr fixes the breaking change of time 0.3.12.