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

Update tide requirement from 0.12 to 0.13 #1

Merged
merged 3 commits into from
Aug 3, 2020

Conversation

dependabot-preview[bot]
Copy link
Contributor

Updates the requirements on tide to permit the latest version.

Release notes

Sourced from tide's releases.

v0.13.0

Docs

This release introduces first-class support for sessions, fixes a long-standing bug with our default middleware, clarifies our stability guarantees, and renamed the API to register middleware through.

Sessions

We're excited to announce initial support for sessions in Tide. This feature enables Tide applications to associate multiple separate requests as belonging to the same origin. Which is a pre-requisite to build common web-app features such as user accounts, multi-request transactions, and channels.

Tide sessions are generic over backend stores and signing strategy. It builds on the newly released async-session 2.0.0 library, which is a set of common traits that types that make up a session. But beyond that, much of it is implementation specific.

Tide ships with a memory and cookie store by default. However we have also published several convenient session store implementations for common databases, providing a nice selection to choose from:

Using "Redis" as the backing session store for Tide is as easy as writing 3 lines and including a dependency in your Cargo.toml:

use async_redis_session::RedisSessionStore;
use tide::sessions::SessionMiddleware;
use tide::{Redirect, Request};
#[async_std::main]
async fn main() -> tide::Result<()> {
let mut app = tide::new();
// Create a Redis-backed session store and use it in the app
let store = RedisSessionStore::new(&quot;redis://127.0.0.1:6379&quot;)?;
let secret = std::env::var(&quot;SESSION_SECRET&quot;).unwrap();
app.with(SessionMiddleware::new(store, secret.as_bytes()));
app.at(&quot;/&quot;).get(|mut req: Request&lt;()&gt;| async move {
// Store a counter in the session; increment it by one on each visit

</tr></table> ... (truncated)

Commits
  • 2767410 v0.13.0
  • d4240b0 Merge pull request #670 from yusuke-ota/Add_http_types_req_into_tide_req
  • ed7ea86 Merge pull request #662 from jbr/only-log-once
  • 0ff17a3 Merge pull request #667 from jbr/remove-experimental-warning
  • ba33a65 impl Into<Request> for http_types::Request
  • 1a7aa4c clarify "Stability"
  • 08132a6 remove experimental warning
  • d9c2040 Merge pull request #666 from http-rs/server-with
  • e3602c2 cargo fmt
  • 915c7f8 Rename .middleware to .with
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Updates the requirements on [tide](https://github.com/http-rs/tide) to permit the latest version.
- [Release notes](https://github.com/http-rs/tide/releases)
- [Commits](http-rs/tide@v0.12.0...v0.13.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Aug 3, 2020
@eopb eopb merged commit f31a968 into master Aug 3, 2020
@eopb eopb deleted the dependabot/cargo/tide-0.13 branch August 3, 2020 10:23
@eopb
Copy link
Owner

eopb commented Aug 4, 2020

@dependabot badge me

@dependabot-preview
Copy link
Contributor Author

Dependabot Status

The markdown to add the above to your README is:

[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=ethanboxx/tide-tracing)](https://dependabot.com)

@github-actions github-actions bot mentioned this pull request Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant