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 Rust edition to 2021 #501

Merged
merged 1 commit into from
Jul 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- ubuntu-latest
- macOS-latest
rust:
- "1.54.0" # Current MSRV
- "1.58.0" # Current MSRV
- stable
- beta
- nightly
Expand All @@ -22,24 +22,6 @@ jobs:
include:
- rust: nightly
allow_failure: true
# exclude:
# - os: macOS-latest
# target: x86_64-unknown-linux-musl
# - os: ubuntu-latest
# rust: 1.40.0
# target: x86_64-unknown-linux-musl
# - os: ubuntu-latest
# rust: beta
# target: x86_64-unknown-linux-musl
# - os: ubuntu-latest
# rust: nightly
# target: x86_64-unknown-linux-musl
# - os: macOS-latest
# rust: 1.40.0
# - os: macOS-latest
# rust: beta
# - os: macOS-latest
# rust: nightly
env:
RUST_BACKTRACE: 1
steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ This will make your function compile much faster.

## Supported Rust Versions (MSRV)

The AWS Lambda Rust Runtime requires a minimum of Rust 1.54, and is not guaranteed to build on compiler versions earlier than that.
The AWS Lambda Rust Runtime requires a minimum of Rust 1.58, and is not guaranteed to build on compiler versions earlier than that.

## Security

Expand Down
2 changes: 1 addition & 1 deletion lambda-extension/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "lambda-extension"
version = "0.5.0"
edition = "2018"
edition = "2021"
authors = ["David Calavera <david.calavera@gmail.com>"]
description = "AWS Lambda Extension API"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion lambda-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "lambda_http"
version = "0.5.2"
authors = ["Doug Tangren"]
edition = "2018"
edition = "2021"
description = "Application Load Balancer and API Gateway event types for AWS Lambda"
keywords = ["AWS", "Lambda", "APIGateway", "ALB", "API"]
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions lambda-http/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![warn(missing_docs)]
#![warn(missing_docs, rust_2018_idioms)]
//#![deny(warnings)]
//! Enriches the `lambda` crate with [`http`](https://github.com/hyperium/http)
//! types targeting AWS [ALB](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html), [API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html) REST and HTTP API lambda integrations.
Expand Down Expand Up @@ -104,7 +104,7 @@ where
{
type Output = Result<LambdaResponse, E>;

fn poll(mut self: Pin<&mut Self>, cx: &mut TaskContext) -> Poll<Self::Output> {
fn poll(mut self: Pin<&mut Self>, cx: &mut TaskContext<'_>) -> Poll<Self::Output> {
match *self {
TransformResponse::Request(ref mut origin, ref mut request) => match request.as_mut().poll(cx) {
Poll::Ready(Ok(resp)) => {
Expand Down
2 changes: 1 addition & 1 deletion lambda-runtime-api-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "lambda_runtime_api_client"
version = "0.5.0"
edition = "2018"
edition = "2021"
authors = ["David Calavera <david.calavera@gmail.com>"]
description = "AWS Lambda Runtime interaction API"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion lambda-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "lambda_runtime"
version = "0.5.1"
authors = ["David Barsky <dbarsky@amazon.com>"]
description = "AWS Lambda Runtime"
edition = "2018"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/awslabs/aws-lambda-rust-runtime"
categories = ["web-programming::http-server"]
Expand Down