Programmers are very happy with Rust so I thought I'd give it a try. I have a Hello World WebAssembly and I tried to add some code to show the time.
The following line appears to kill the function and it returns nothing (no text, no error)
let dt = Utc::now();
If I comment out the line the function runs as before and returns a string
Is this happening to anyone else? It seems strange to me that a language that programmers like so much would behave in such an annoying fashion.
I have the 2 lines below at the top of my rs file: extern crate chrono; use chrono::{Duration, Utc};
I have the following in the dependencies in the toml file chrono = "0.4"