-
Notifications
You must be signed in to change notification settings - Fork 148
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
Move segments of library to separate crates #164
Conversation
It's not necessarily a breaking change, if all of the same paths are still available through The travis scripts will need to be updated to make sure all tests are run across all subcrates. Some of that is already extracted into separate shell scripts, so if it starts getting long we could pull the entire |
@cuviper I have changed some traits (i.e. content of |
OK, I hadn't looked that closely since it's a WIP. `FromStrRadix` sounds
like a reasonable but orthogonal change. Is it really necessary for the
split? Otherwise I'd do that separately.
|
No, it is not necessary. I will extract this. Łukasz Jan Niemier Dnia 16 lut 2016 o godz. 19:18 Josh Stone [email protected] napisał(a):
|
☔ The latest upstream changes (presumably ebed675) made this pull request unmergeable. Please resolve the merge conflicts. |
fb6873a
to
792378c
Compare
I don't have a preference between this and my #174, except that it should happen sooner than later. Getting the traits into their own crate is already done, either here or there. If you get that merged separately, you can release the num-traits crate sooner. :-) |
7cf801b
to
3b526cd
Compare
☔ The latest upstream changes (presumably #176) made this pull request unmergeable. Please resolve the merge conflicts. |
@hauleth can we get the traits change landed and released sooner? My thinking is that this won't be a breaking change for any users so there's no need to delay landing any of it. |
I should finish this later today, so You can expect release today (UTC+1 timezone). |
@hauleth ! yay! |
Aside, here's a neat way to test subpackages, pulling each |
@cuviper this hack is nice, but not as it would satisfy me. It requires that root crate will have the same dependencies as all sub-crates. This is kind of no-go for us as I've splitted dependencies. What is more I want to make |
@cuviper are we ready with this? |
We need better subcrate descriptions, but otherwise I think it's good. |
Will you bump the versions when you do this? I have lots of ideas for Float that I'd like to explore if we have a new version. Ideally they would be in place in the first release of a new major version. |
No bump yet, I think semver should be OK through this one. |
I will finish it tomorrow. What is left is descriptions and publishing all packages. I think that we should tag each of the subcrates independently via |
@hauleth Have you worked on those descriptions? If not, I can get to it tonight. |
Here you are. |
I'd prefer to keep a fuller description on the main I also just noticed that features aren't trickling down to subcrates correctly. For example, enabling |
@cuviper I know no solution to push flags to sub crates. Maybe there should be an RFC for that. |
I don't think there is a solution if the feature name is the same name as a dependency in the same crate. Otherwise you can forward like this: [features]
serde = ["num-bigint/serde"] # Requires same feature from dependency num-bigint It is not conditionally forwarding. This issue is semi related, isn't it? rust-lang/cargo#1286 |
Ah, but the top-level Then for instance |
Should be fixed now. |
⚡ Test exempted - status |
Move segments of library to separate crates Issue #102 - [x] traits - [x] bigint - [x] integer - [x] complex - [x] iter - [x] rational
This is all published now. |
Issue #102