-
Notifications
You must be signed in to change notification settings - Fork 123
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
new release #259
Comments
Seconding this for the upgrade for |
Because I couldn't wait I have published a fork, directly from todays |
@dignifiedquire maybe for some reason this won't work for you, but you can just add git dependency on a specific commit. So current latest derive_more = { git = "https://github.com/JelteF/derive_more.git", rev = "60ed1e7" } |
@ilslv thanks, that's what I have been doing for a while, but I need to cut releases and publish them to crates.io which does not allow to have git dependencies. |
I published v1.0.0-beta.1 a few minutes ago from the current master. There's still a few breaking changes incoming before the final 1.0.0 release, but most things should stay the same now. Feedback is very much appreciated. |
great, thanks a lot! |
@JelteF some report on integrating BugsOnly 3 bugs were discovered during integration: #287, #288, #289 InconveniencesImporting via It turned out that the case for defining However, I think the HappinessWhere |
Hmm, that indeed sounds really annoying. Do you also have examples where re-exporting the traits did reduce the amount of imports you needed? If so, did you have any cases where it was beneficial that I think maybe we shouldn't export the Error trait for this reason as an exception to the rule. I don't think any of the other derives have this problem that it's common for people to define a struct themselves with same name. |
Yes, most of the time, it reduced duplicated imports from
Similar for the
I don't think so. That was my first feeling, of course, when I started the refactoring and was overwhelmed with a lot of import conflicts. But after finishing it, I think that things are much better the way they are now. You see, I can't say the problem is with the new version of use std::error::Error as StdError;
use derive_more::{Display, Error};
#[derive(Display, Error)]
pub struct Error(Box<dyn StdError>); So in the same scope we had With new use derive_more::{Display, Error as StdError};
#[derive(Display, StdError)]
pub struct Error(Box<dyn StdError>); And voilà, no ambiguity anymore! No additional docs squatting! So, I think the new For those who are really pissed off and don't bother with such stuff, I really think the |
Okay, sounds good. Can you create a PR for the |
Did you mean to close this whole issue? #290 added a derive module, but I don't see a new release yet. |
Any blockers for the release? Having syn 2.0 would be very nice |
@KillingSpark yes, there are some blocker still for going fully into 1.0. Mostly are #142 and #328, but there can be some new ones once the code is revisited before 1.0. Nevertheless, you already can use |
Thanks to the work of @bash syn 2.0 support is now backported to the 0.99 branch too, as version 0.99.18 |
Closing this now that we have both beta releases an a syn 2.0 version of the 0.99.x branch |
1.0.0 has been released! Release: https://github.com/JelteF/derive_more/releases/tag/v1.0.0 |
Resolves JelteF/derive_more#259 (comment) Add `derive_more::derive` module, re-exporting macros only.
Hey I was wondering if it was possible to cut a release with the current code as there are some things I would love to start using. Thanks
The text was updated successfully, but these errors were encountered: