Skip to content

Commit f3bc34b

Browse files
committed
Rename client crate to avoid confusion.
Once upon a time, there was a crate called `lambda-runtime-client`. We don't want people to mistake this new crate with the old one. Signed-off-by: David Calavera <[email protected]>
1 parent 19e1ceb commit f3bc34b

File tree

10 files changed

+12
-13
lines changed

10 files changed

+12
-13
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace]
22
members = [
33
"lambda-http",
4-
"lambda-runtime-client",
4+
"lambda-runtime-api-client",
55
"lambda-runtime",
66
"lambda-extension"
77
]

lambda-extension/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ keywords = ["AWS", "Lambda", "API"]
1111
readme = "../README.md"
1212

1313
[dependencies]
14-
anyhow = "1.0.48"
1514
async-trait = "0.1.51"
1615
tokio = { version = "1.0", features = ["macros", "io-util", "sync", "rt-multi-thread"] }
1716
hyper = { version = "0.14", features = ["http1", "client", "server", "stream", "runtime"] }
@@ -25,7 +24,7 @@ tracing-error = "0.2"
2524
tracing = { version = "0.1", features = ["log"] }
2625
tower-service = "0.3"
2726
tokio-stream = "0.1.2"
28-
lambda_runtime_client = { version = "*", path = "../lambda-runtime-client" }
27+
lambda_runtime_api_client = { version = "0.4", path = "../lambda-runtime-api-client" }
2928

3029
[dev-dependencies]
3130
tracing-subscriber = "0.3"

lambda-extension/examples/error_handling.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use lambda_extension::{run, Error, Extension, InvokeEvent, ShutdownEvent, requests::exit_error, requests::init_error};
2-
use lambda_runtime_client::Client;
2+
use lambda_runtime_api_client::Client;
33
use log::LevelFilter;
44
use simple_logger::SimpleLogger;
55

lambda-extension/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use async_trait::async_trait;
55
use hyper::client::{connect::Connection, HttpConnector};
6-
use lambda_runtime_client::Client;
6+
use lambda_runtime_api_client::Client;
77
use serde::Deserialize;
88
use tokio::io::{AsyncRead, AsyncWrite};
99
use tokio_stream::{StreamExt};
@@ -12,7 +12,7 @@ use tracing::trace;
1212

1313
pub mod requests;
1414

15-
pub type Error = lambda_runtime_client::Error;
15+
pub type Error = lambda_runtime_api_client::Error;
1616

1717
#[derive(Debug, Deserialize)]
1818
#[serde(rename_all = "camelCase")]

lambda-extension/src/requests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::Error;
22
use http::{Method, Request};
33
use hyper::Body;
4-
use lambda_runtime_client::build_request;
4+
use lambda_runtime_api_client::build_request;
55
use serde::Serialize;
66

77
const EXTENSION_NAME_HEADER: &str = "Lambda-Extension-Name";

lambda-runtime-client/Cargo.toml renamed to lambda-runtime-api-client/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
2-
name = "lambda_runtime_client"
3-
version = "0.1.0"
2+
name = "lambda_runtime_api_client"
3+
version = "0.4.1"
44
edition = "2021"
55
authors = ["David Calavera <[email protected]>"]
66
description = "AWS Lambda Runtime interaction API"

lambda-runtime/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tracing-error = "0.2"
2727
tracing = { version = "0.1", features = ["log"] }
2828
tower-service = "0.3"
2929
tokio-stream = "0.1.2"
30-
lambda_runtime_client = { version = "*", path = "../lambda-runtime-client" }
30+
lambda_runtime_api_client = { version = "0.4", path = "../lambda-runtime-api-client" }
3131

3232
[dev-dependencies]
3333
tracing-subscriber = "0.3"

lambda-runtime/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! to the the `lambda_runtime::run` function, which launches and runs the Lambda runtime.
88
pub use crate::types::Context;
99
use hyper::client::{connect::Connection, HttpConnector};
10-
use lambda_runtime_client::Client;
10+
use lambda_runtime_api_client::Client;
1111
use serde::{Deserialize, Serialize};
1212
use std::{convert::TryFrom, env, fmt, future::Future, panic};
1313
use tokio::io::{AsyncRead, AsyncWrite};
@@ -24,7 +24,7 @@ mod types;
2424
use requests::{EventCompletionRequest, EventErrorRequest, IntoRequest, NextEventRequest};
2525
use types::Diagnostic;
2626

27-
pub type Error = lambda_runtime_client::Error;
27+
pub type Error = lambda_runtime_api_client::Error;
2828

2929
/// Configuration derived from environment variables.
3030
#[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)]

lambda-runtime/src/requests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::{types::Diagnostic, Error};
22
use http::{Method, Request, Response, Uri};
33
use hyper::Body;
4-
use lambda_runtime_client::build_request;
4+
use lambda_runtime_api_client::build_request;
55
use serde::Serialize;
66
use std::str::FromStr;
77

0 commit comments

Comments
 (0)