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

Bump lambda_http from 0.1.1 to 0.3.0 #98

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 15, 2021

Bumps lambda_http from 0.1.1 to 0.3.0.

Release notes

Sourced from lambda_http's releases.

Release 0.3.0

0.3.0

New: Almost everything!

  • Heavy restructuring was done in order to simplify the runtime and to enable asynchronous handlers by default.

  • The lambda crate has been renamed to lambda_runtime, and the original lambda_runtime has been removed from the project. lambda_http remains the same.

  • The lambda_http crate now supports API Gateway HTTP API Lambda triggers.

  • Both lambda_runtime and lambda_http have noteworthy, breaking API changes. The following is a rough approximation of what a transition to the new runtime API will be:

    note: the runtime is based on std::future::Future based and relies on Tokio via Hyper.

    main.rs

    -use lambda_runtime::{error::HandlerError, lambda, Context};
    +use lambda_runtime::{handler_fn, Context};
    use serde_json::Value;
    +type Error = Box<dyn std::error::Error + Sync + Send + 'static>;
    -fn main() {
    
    lambda!(handler)
    
    +#[tokio::main]
    +async fn main() -> Result<(), Error> {
    
    lambda_runtime::run(handler_fn(handler)).await?;
    Ok(())
    }
    
    -fn handler(
    
    event: Value,
    _: Context,
    -) -> Result<Value, HandlerError> {
    +async fn handler(
    
    
    event: Value,
    _:Context
    +) -> Result<Value, Error> {
    Ok(event)
    }

Please refer to the examples in (lambda-runtime/examples; lambda-http/examples) for more detail.

Release 0.2.0

Features

  • New: We created lambda_runtime_core crate that implements the runtime's main loop and supports handlers that accept and return Vec<u8>. (#53)
  • New: The primary lambda_runtime crate is a wrapper on top of the lambda_runtime_core handler (#53).
  • New: The lambda_http crate, which enables support for API Gateway or ALB requests, treating them as Request structs from the http crate (#18 by @​softprops).
  • New: The lambda_runtime_errors crate introduces the LambdaErrorExt trait that enables the ability to specify custom errorType values for the Lambda Runtime API. The change also includes a companion derive crate that makes it easy to automatically generate LambdaErrorExt implementations for crate-local error types (#63).

... (truncated)

Commits

Dependabot compatibility score

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.


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 dependabot bot added dependency-update update depency version rust Pull requests that update Rust code labels Mar 15, 2021
@dependabot dependabot bot force-pushed the dependabot/cargo/lambda_http-0.3.0 branch from 7a80dbb to 3698d00 Compare March 18, 2021 18:05
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 18, 2021

Looks like lambda_http is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Mar 18, 2021
@dependabot dependabot bot deleted the dependabot/cargo/lambda_http-0.3.0 branch March 18, 2021 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency-update update depency version rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants