-
Notifications
You must be signed in to change notification settings - Fork 7
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
Factorize automatic generation from IANA database #10
Comments
I'm not sure I understand what you're trying to do. In my understanding you want to avoid download and build of the entire IANA database by moving this part to it's own crate. Is that what you're trying to do? I understand that this part can be very slow if you don't need it but currently there's no way to avoid download of the IANA database. In the current version there's already a feature which enables the IANA database (which is enabled by default). The Now if we agree on what you're trying to do that could be indeed better. However, there are several points to be aware of in the current setup:
All things considered, if we do end up extracting this to it's own crate I'd like it to be time crate agnostic, meaning it could be used with any |
I'm sorry if I was not precise enough, I'll try to answer your questions below.
I do not want to avoid downloading the IANA database. I actually want to extract the Rust code generation (in
Nice, if I understand well, what you did is actually an improvement for Windows user over the
Thanks for the hint, that's actually one of the thing I was not sure. If both That said, aren't
Yes, sure. It seems that this is an improvement over what has been done in
I didn't yet think about the details. From
Yes, that's exactly the goal: to create a new crate, agnostic from I hope it does answer some of your questions? Since I don't know yet all the implementation details, I might still miss things and be not precise enough, but I hope to figure out the details as I do it. |
I see, I think separating IANA database generation to a different crate could indeed be better in the long term: that would avoid me having to periodically check for updates with the official IANA database.
Indeed my I've thought of a possible API which could leave the
Such API would allow moving the I also think we should create a new repository for this library. What do you think? |
Sorry for the not so short text below, but I thought some context was needed before exposing what I'd like to do.
Context
In the beginning of the year 2022, reacting to CVE-2020-26235, I migrated some of the repositories I was working on, from
chrono
totime
, until I stumbled on some functionalities that needed to parse timezones. Then, I opened chronotope/chrono-tz#93.That said, the PR I proposed is not really satisfying:
chrono_tz
, you would expect to havechrono
in it (so makingchrono
an optional feature sounds dumb)It's the second item that made me opened this issue (see below).
What I'd like to do?
I only found out today about your crate
time-tz
. I'm pretty happy about it because I'm pretty sure I'm gonna use it:smile:I quickly parsed the code from
build.rs
and it seems mostly similar tochrono-tz-build
. I was actually already trying to extract that part into an independent crate (when working on chronotope/chrono-tz#93). Would you be interested in such a modification? I'd be interested to actually do the work but I'd like to know first if the idea is sound and acceptable in your project?The text was updated successfully, but these errors were encountered: