Skip to content

Removed SDK keyword #9

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

Merged
merged 12 commits into from
Nov 29, 2018
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
7 changes: 5 additions & 2 deletions lambda-runtime-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ name = "lambda_runtime_client"
version = "0.1.0"
authors = ["Stefano Buliani", "David Barsky"]
description = "Client SDK for AWS Lambda's runtime APIs"
keywords = ["AWS", "Lambda", "Runtime", "API", "Client", "SDK"]
keywords = ["AWS", "Lambda", "Runtime", "API", "Client"]
license = "Apache-2.0"
homepage = "https://github.com/awslabs/aws-lambda-rust-runtime"
repository = "https://github.com/awslabs/aws-lambda-rust-runtime"
documentation = "https://docs.rs/lambda_runtime_client"

[dependencies]
hyper = "0.12"
Expand All @@ -14,4 +17,4 @@ serde = "^1"
serde_json = "^1"
serde_derive = "^1"
log = "0.4"
backtrace = "0.3"
backtrace = "0.3"
1 change: 1 addition & 0 deletions lambda-runtime-client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![warn(missing_docs)]
#![deny(warnings)]
//! Rust client SDK for the AWS Lambda Runtime APIs. This crate defines
//! a `RuntimeClient` that encapsulates interactions with AWS Lambda's Runtime
//! APIs.
Expand Down
7 changes: 5 additions & 2 deletions lambda-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ authors = ["Stefano Buliani", "David Barsky"]
description = "Rust runtime for AWS Lambda"
keywords = ["AWS", "Lambda", "Runtime", "Rust"]
license = "Apache-2.0"
homepage = "https://github.com/awslabs/aws-lambda-rust-runtime"
repository = "https://github.com/awslabs/aws-lambda-rust-runtime"
documentation = "https://docs.rs/lambda_runtime"
build = "build.rs"

[dependencies]
Expand All @@ -15,7 +18,7 @@ log = "^0.4"
hyper = "^0.12"
tokio = "^0.1"
backtrace = "^0.3"
lambda_runtime_client = { path = "../lambda-runtime-client"}
lambda_runtime_client = { path = "../lambda-runtime-client", version = "^0.1" }
chrono = "^0.4"
simple_logger = "^1"

Expand All @@ -26,4 +29,4 @@ rusoto_dynamodb = "^0.35"
skeptic = "^0.13"

[build-dependencies]
skeptic = "^0.13"
skeptic = "^0.13"
1 change: 1 addition & 0 deletions lambda-runtime/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![warn(missing_docs)]
#![deny(warnings)]
//! Lambda runtime makes it easy to run Rust code inside AWS Lambda. To create
//! Lambda function with this library simply include it as a dependency, make
//! sure that you declare a function that respects the `Handler` type, and call
Expand Down
4 changes: 2 additions & 2 deletions lambda-runtime/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ where
for<'invocation> E: serde::Deserialize<'invocation>,
O: serde::Serialize,
{
start_with_config(f, EnvConfigProvider::new(), runtime)
start_with_config(f, &EnvConfigProvider::new(), runtime)
}

#[macro_export]
Expand All @@ -53,7 +53,7 @@ macro_rules! lambda {
/// The function panics if the `ConfigProvider` returns an error from the `get_runtime_api_endpoint()`
/// or `get_function_settings()` methods. The panic forces AWS Lambda to terminate the environment
/// and spin up a new one for the next invocation.
pub(crate) fn start_with_config<E, O, C>(f: Handler<E, O>, config: C, runtime: Option<TokioRuntime>)
pub(crate) fn start_with_config<E, O, C>(f: Handler<E, O>, config: &C, runtime: Option<TokioRuntime>)
where
for<'invocation> E: serde::Deserialize<'invocation>,
O: serde::Serialize,
Expand Down