-
Notifications
You must be signed in to change notification settings - Fork 57
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
Pre-generate timezone data instead of using build.rs
#78
Comments
When you say that they do not show for you, do you mean in terms of IDE support showing you all of the information? If so, rest assured that they are all there, but that the IDE may just be having some difficulty understanding how to interpret the build script and macro that generates a lot of the information. Which IDE are you using? |
Ahhhhhh, didn't even think about that! I am using Jetbrains CLion |
I also hit this and wasted a lot of time on it. The root cause is that CLion and the chrono-tz's Would the maintainers be amenable to changing |
I mis-read the code. chrono-tz's I still hope that chrono-tz can include the file pre-generated so builds will be faster and users will not waste time trouble-shooting editor visibility problems. Maybe we can include the change in #22 ? |
build.rs
To Whom This May Concern:
I am still a pretty newbie Rust dev and trying to implement this to convert a UTC time to PST.
I am following the examples but the timezone modules do not show for me.
I am apparently doing something wrong.
Here is my Cargo.toml entries:
I am "externing" the crates chrono and chrono_tz in my main and also implementing:
use chrono::{TimeZone, UTC};
And when I try to implement chrono_tz::US::Pacific all I get is the ability to do the following:
use chrono_tz::{OffsetComponents, OffsetName};
What the heck am I missing?
TIA,
B
The text was updated successfully, but these errors were encountered: