-
Notifications
You must be signed in to change notification settings - Fork 533
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
getting utc in wasm #243
Comments
What is the error that you're running into? I haven't done any work with it, but running with |
I'm having this problem as well, and this user reporting in the |
I'd like to see some wasm support as well. While disabling the local feature should work, it doesn't work for crates that have to work on other targets as well, due to cargo not being able to selectively enable / disable features for certain targets. So it would be cool if chrono either had specific wasm support (by using Web APIs or defining its own external interface) or just automatically cfging out the local feature when targeting wasm. If not, I might have to fork chrono :( |
Would it be if I would just send a PR real quick that extends all the local cfgs to also check for wasm? That'd be a fast and easy, but slightly dirty fix (although somewhat necessary for the meantime). |
@CryZe yes I'd be curious what that looks like, if it's backwards-compatible I'd be happy with it. |
Actually, that wouldn't work, as the time crate would still be pulled in then. Urgh, I guess someone needs to fix cargo then. |
If you disable default features we should not be pulling in the time crate. |
I have a PR waiting to be merged that enables |
Still broken |
This is fixed. |
Is there a workaround for making chrono work with wasm? I want to get current time (utc). I am using wasm-unknown-unknow flag.
The text was updated successfully, but these errors were encountered: