-
Notifications
You must be signed in to change notification settings - Fork 182
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
Moving data provider structs into their own crates #451
Conversation
Pull Request Test Coverage Report for Build b4f699c028cb2f087ba3e5b95d90e91408cd178d-PR-451
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
I'd only suggest moving provider.rs
and provider_internal.rs
to provider/structs.rs
and provider/mod.rs
.
Reasons why I'd rather not use that particular naming scheme:
I would be okay with some other name than |
That seems like a very subjective preference, boiling down to
That's accomplished by the model I proposed.
The file structure I proposed can provide what you're looking for. I'm very fond of clustering analogous mental spaces in folders. How you expose those is flexible, but I also prefer |
Are you okay with provider/mod.rs and provider/helpers.rs? |
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
The merge directly from master is confusing, so I'm squashing and rebasing instead. ^ that was the squash. Rebase coming up next. |
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
This is done except for the features test breakage. The problem is that With a normal feature (not an optional dependency), you can do:
@Manishearth Suggestions? |
I'm leaning toward adding a new feature that can pull in What should we call the new feature?
|
+1 for "serialize" |
serialize seems fine to me. Not happy about having to do this, but all we can do is wait for namespaced features I guess |
Codecov Report
@@ Coverage Diff @@
## master #451 +/- ##
==========================================
+ Coverage 75.22% 75.41% +0.18%
==========================================
Files 114 113 -1
Lines 6124 6068 -56
==========================================
- Hits 4607 4576 -31
+ Misses 1517 1492 -25
Continue to review full report at Codecov.
|
I went with Looks like the tests are all passing, including the feature permutation test! This is ready for re-review, and I'm eager to check it in. I may wait to hit the merge button until tomorrow's meeting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for provider_ppucd
and uniset
components, but of course not much needed coincidentally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Thank you Shane!
Clippy seems to be failing due to the known clippy bug:
So I believe this PR is ready to land as soon as I get the final approvals. |
@filmil told me offline that he's unable to review this PR, so I will proceed to merge with the approvals from @zbraniecki, @nciric, and @echeran. |
Fixes #415
I put the structs into a
pub mod provider
, which is a convention we can adopt across all components.Note that there was already a file named "provider.rs" in datetime; I renamed that file to "provider_internal.rs" before moving the structs file into "provider.rs". Please keep this in mind when reviewing!
I made the
serde
feature optional on the struct, which means we can use the struct without serde (e.g. Static DataProvider).