Skip to content
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

Core revamp part 3 #255

Merged
merged 7 commits into from
May 23, 2019
Merged

Core revamp part 3 #255

merged 7 commits into from
May 23, 2019

Conversation

prasannavl
Copy link
Contributor

@prasannavl prasannavl commented May 21, 2019

Description

  • Extract form.rs into tide-forms
  • Extract querystring.rs into tide-querystring
  • Refactor tide lib.rs
  • Move shared internals into tide_core::internal

Motivation and Context

#252, #162

How Has This Been Tested?

All tests passed

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactor

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@fairingrey
Copy link
Contributor

Looks great! Although I will remark that we should probably rename all occurrences of Data to State on the numerous ContextExt traits impl'd by each of these now sub-crates.

Unrelated, given, but just something I've noticed that we haven't fully accounted for.

@prasannavl
Copy link
Contributor Author

@fairingrey - I think a separate PR with full sweep of it should be readily merge-able. (Could you open an issue? It'll make a good first issue too)

@k-nasa k-nasa mentioned this pull request May 23, 2019
8 tasks
@@ -16,7 +16,7 @@ impl std::fmt::Display for StringError {
#[macro_export]
macro_rules! err_fmt {
{$($t:tt)*} => {
crate::error::StringError(format!($($t)*))
$crate::error::StringError(format!($($t)*))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @yoshuawuyts - yes! This is needed since err_fmt is in tide_core and also re-exported by tide.

@fairingrey
Copy link
Contributor

With 4 approvals, I'll go ahead and merge this 👍

@fairingrey fairingrey merged commit d18c369 into http-rs:master May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants