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

Add prelude #567

Merged
merged 10 commits into from
Nov 12, 2021
Merged

Add prelude #567

merged 10 commits into from
Nov 12, 2021

Conversation

msrd0
Copy link
Member

@msrd0 msrd0 commented Oct 5, 2021

This PR adds a prelude module that pub uses some traits and all derive macros from gotham that define methods commonly used by user code.

It might make sense to also add functions, structs, re-exported crates etc to the prelude in the future.

@msrd0 msrd0 added this to the 0.7 milestone Oct 5, 2021
@codecov
Copy link

codecov bot commented Oct 5, 2021

Codecov Report

Merging #567 (9dde4de) into master (ca0f906) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #567      +/-   ##
==========================================
- Coverage   85.95%   85.88%   -0.07%     
==========================================
  Files         112      112              
  Lines        5781     5781              
==========================================
- Hits         4969     4965       -4     
- Misses        812      816       +4     
Impacted Files Coverage Δ
examples/cookies/introduction/src/main.rs 88.88% <ø> (ø)
examples/custom_service/src/main.rs 2.77% <ø> (ø)
examples/diesel/src/main.rs 88.09% <ø> (ø)
...les/example_contribution_template/name/src/main.rs 76.19% <ø> (ø)
examples/finalizers/src/main.rs 85.71% <ø> (ø)
examples/handlers/async_handlers/src/main.rs 91.24% <ø> (ø)
examples/handlers/form_urlencoded/src/main.rs 83.33% <ø> (ø)
examples/handlers/multipart/src/main.rs 76.19% <ø> (ø)
examples/handlers/request_data/src/main.rs 88.88% <ø> (ø)
...xamples/handlers/simple_async_handlers/src/main.rs 90.00% <ø> (ø)
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca0f906...9dde4de. Read the comment docs.

@msrd0 msrd0 merged commit 6238958 into gotham-rs:master Nov 12, 2021
@msrd0 msrd0 deleted the prelude branch November 12, 2021 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant