-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Is this crate deprecated? Or isn't it? What to use instead? #136
Comments
Thanks for the report! This crate is currently "deprecated" in the sense that the rust-lang libs team isn't attempting to actively maintain it or pursue redesigns, but currently there aren't many replacements for its functionality quite just yet. It's essentially looking for other maintainers, if anyone steps up, or waiting for something to replace it. The libs team, however, will continue to fix bugs in it though. |
I see. Officially unmaintained or not, this crate seems to be better maintained than many other smaller open source projects are. Maybe it would be a good idea to put that info into the README to that others who have this question will see it? Then this issue can be closed :) |
Sounds good to me! I'll leave this open until the README is updated |
@alexcrichton Any opposition to someone else taking over this crate? I'd be willing to bring things up to date: converting to 2018, removing anything that's deprecated, and (possibly) switching the backend to |
👍 !! |
Just for reference, my view for the time crate is, apart from modernizing it, to make some pretty large changes eventually. In a future version, I'd prefer to have newtypes over
|
That sounds good to me! Should we set up a GitHub org to shift the crate into? |
@alexcrichton No preference here. Either way others could remain in an "oversight" position to make sure I don't do anything stupid with it. Obviously the publishing rights to crates.io will be necessary as well. Thank you! |
If y'all are making drastic changes I think that you should first fork it and create a different crate in its own org, potentially merging back in eventually as it matures. We should be careful about the |
My personal preference is towards organizations, just because it lets us manage commit and publish permissions in the one model. @Manishearth Hmm, what if we spun @jhpratt @alexcrichton How does that sound to you? |
That's roughly what I was thinking yeah |
I personally don't care for As I've said before, an organization is fine — I have no preference either way. I know that @alexcrichton mentioned transferring it to me personally, but I would certainly add other contributors with push access if desired. |
Ok so how about we do the following:
How's that sound? |
@alexcrichton Sounds good to me. |
Ok! @jhpratt want to make an org, add me as an admin, and I'll transfer this repository in to the organization? |
Done. Organization is |
Oh hm sorry |
Moved to |
Ok! I've transferred the crate now. @jhpratt want to go hog-wild on the APIs and such? It might be good to update the When you're reading, can you prepare a report of what is being published, strategy, vision, etc, and we can send it around for review? |
I'll update the README now, other things I'll push up at some point; I've already been working on a new I'll certainly prepare a report detailing what was changed and a migration guide once I think a v0.2 is ready. |
Hey @jhpratt! 👋 It looks like you’ve been pretty busy already on modernizing Is there anything you need or would like any input on at this stage? |
@KodrAus No problem! I decided pretty early on to do a full rewrite, since not much would carry over. I don't think there's anything in particular — I'm just starting work on the parser. Feel free to take a look through things, pretty much everything is documented here, which is kept up-to-date with master via CI. There's also a couple hundred doctests. After I'm done with parsing, I'm going to add |
That sounds good! It might be helpful to write up sometime about the broader vision you’ve got in mind for |
Can do. I had thought about that somewhat already, and determined that nothing should depend on the local system offset, such that outputs will be identical no matter the system's settings. Other things I'll definitely think about more. |
Does this deprecation include
and links back to It would be nice to clarify these points in the Benchmarking programs in Rust Q/A, which currently has contradicting information and at the moment there is no definite answer to "how to measure time in Rust". |
@bluenote10 I think you're confusing the time crate and the time module in the standard library. The latter is going nowhere, which is where If you're looking for the source code for |
Indeed, since the issue begins with
I was assuming this might have been |
Yeah, it used to until a little while ago! From what I can see from both release notes and seemingly shared code, the 0.1 implementation of this crate actually predates (and influenced) the standard library's implementation. |
Would either or both of you care to take a look at the master branch? I believe the API and implementations are sound after quickly checking things over myself. The only item I still want to work on before a possible release is increasing test coverage, specifically on parsing and formatting. Documentation is available at time-rs.github.io, and there are quasi-short links as well (like time-rs.github.io/Duration) that will automatically redirect to the appropriate struct, enum, etc. No rush on anything, my goal is to release this alongside rust 1.40, such that I can use If you have any questions or concerns, let me know! |
While not exactly a thorough evaluation by any means, a quick once-over and it looks like a great crate! I'm not personally too privvy to all the design intricacies of a "good time library" so I can't really review much on the technical side, but API-wise seems like a good crate to use :) |
Hi @jhpratt! That's exciting news! 🎉 I'll make time to give this a review over the next week (just got a few other things to get off the stack first). |
Sounds good! I was going to create a feedback issue in anticipation of community feedback as well. I'll hold off on submitting to TWIR until next week. |
Maintainer's note: Yes, this crate is maintained. As of November 2019, a 0.2 release is in the works.
Original issue follows.
The repo lives under the
rust-lang-deprecated
organisation. https://github.com/rust-lang/time redirects to this repo. Does that mean this crate is deprecated?If this crate is indeed deprecated, what should I use as replacement?
The text was updated successfully, but these errors were encountered: