-
Notifications
You must be signed in to change notification settings - Fork 204
Use web-time
crate instead of unmaintained instant
crate
#1006
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
This breaks code because you removed the Also, is it good to always include |
Would you prefer blind feature flags or removing them from CI?
Honestly, I have no idea what the use case for the |
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
Well, removing them would be breaking, although we can keep an empty feature just for the sake of compatibility... I'm not hung up either way, just not break code.
I remember some user before having his own execution environment that is not a browser and not wasi... That is why |
Right, with the latest commit everything should be working as before. The supported list of targets in rustc is:
I do know |
Well, I made it work because someone was doing exactly that -- making a generic WASM. So as much as possible we shouldn't make it breaking, and specifying I suggest putting Also, after you add back the flags, does it still compile with
If we deprecate |
I already added the flags back. The current build failure is also on
|
With
|
Yes, I know that. My point is that Maybe the solution will be to introduce yet another feature flag to switch to |
"support" is a strong word for passing a feature flag to a dependency. Technically people could still use the |
The
instant
maintainer recommends switching toweb-time
instead. This also replaces #968 (from which I've shamelessly stolen the getrandom change) and fixes #891.