We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8525b63 commit f01a9b6Copy full SHA for f01a9b6
Package.swift
@@ -20,14 +20,16 @@ let package = Package(
20
targets: [
21
.target(name: "AWSLambdaRuntime", dependencies: [
22
.byName(name: "AWSLambdaRuntimeCore"),
23
- .product(name: "NIO", package: "swift-nio"),
+ .product(name: "NIOCore", package: "swift-nio"),
24
.product(name: "NIOFoundationCompat", package: "swift-nio"),
25
]),
26
.target(name: "AWSLambdaRuntimeCore", dependencies: [
27
.product(name: "Logging", package: "swift-log"),
28
.product(name: "Backtrace", package: "swift-backtrace"),
29
.product(name: "NIOHTTP1", package: "swift-nio"),
30
31
+ .product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
32
+ .product(name: "NIOPosix", package: "swift-nio"),
33
.product(name: "_NIOConcurrency", package: "swift-nio"),
34
35
.testTarget(name: "AWSLambdaRuntimeCoreTests", dependencies: [
Sources/AWSLambdaRuntime/Lambda+Codable.swift
@@ -16,7 +16,7 @@
16
import struct Foundation.Data
17
import class Foundation.JSONDecoder
18
import class Foundation.JSONEncoder
19
-import NIO
+import NIOCore
import NIOFoundationCompat
/// Extension to the `Lambda` companion to enable execution of Lambdas that take and return `Codable` events.
Sources/AWSLambdaRuntimeCore/HTTPClient.swift
@@ -12,9 +12,10 @@
12
//
13
//===----------------------------------------------------------------------===//
14
15
import NIOConcurrencyHelpers
import NIOHTTP1
+import NIOPosix
/// A barebone HTTP client to interact with AWS Runtime Engine which is an HTTP server.
/// Note that Lambda Runtime API dictate that only one requests runs at a time.
Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift
@@ -15,9 +15,10 @@
#if DEBUG
import Dispatch
import Logging
// This functionality is designed for local testing hence beind a #if DEBUG flag.
// For example:
Sources/AWSLambdaRuntimeCore/Lambda+String.swift
@@ -11,7 +11,7 @@
11
// SPDX-License-Identifier: Apache-2.0
/// Extension to the `Lambda` companion to enable execution of Lambdas that take and return `String` events.
extension Lambda {
Sources/AWSLambdaRuntimeCore/Lambda.swift
@@ -21,7 +21,8 @@ import Darwin.C
import _NIOConcurrency
import Backtrace
public enum Lambda {
public typealias Handler = ByteBufferLambdaHandler
Sources/AWSLambdaRuntimeCore/LambdaConfiguration.swift
@@ -14,7 +14,7 @@
internal struct Configuration: CustomStringConvertible {
Sources/AWSLambdaRuntimeCore/LambdaContext.swift
// MARK: - InitializationContext
Sources/AWSLambdaRuntimeCore/LambdaHandler.swift
// MARK: - LambdaHandler
Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift
@@ -13,8 +13,8 @@
/// `Lifecycle` manages the Lambda process lifecycle.
0 commit comments