Skip to content

Commit

Permalink
Fix @_implementationOnly warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Mar 25, 2024
1 parent 80074a8 commit 4854964
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 13 deletions.
6 changes: 5 additions & 1 deletion Benchmark/Sources/soto-benchmark/EncoderSuites.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
import Benchmark
import Foundation
import SotoCore
import SotoXML
#if compiler(>=5.10)
internal import SotoXML
#else
@_implementationOnly import SotoXML
#endif

protocol EncoderProtocol {
associatedtype Output
Expand Down
41 changes: 29 additions & 12 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.7
// swift-tools-version:5.8
//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
Expand All @@ -15,6 +15,11 @@

import PackageDescription

let swiftSettings: [SwiftSetting] = [
.enableExperimentalFeature("StrictConcurrency=complete"),
.enableExperimentalFeature("AccessLevelOnImport"),
]

let package = Package(
name: "soto-core",
platforms: [
Expand Down Expand Up @@ -59,13 +64,18 @@ let package = Package(
.product(name: "NIOFoundationCompat", package: "swift-nio"),
.product(name: "JMESPath", package: "jmespath.swift"),
.product(name: "Tracing", package: "swift-distributed-tracing"),
]
],
swiftSettings: swiftSettings
),
.target(
name: "SotoSignerV4",
dependencies: [
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
],
swiftSettings: swiftSettings
),
.target(name: "SotoSignerV4", dependencies: [
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
]),
.target(name: "SotoTestUtils", dependencies: [
.byName(name: "SotoCore"),
.byName(name: "SotoXML"),
Expand All @@ -76,12 +86,19 @@ let package = Package(
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOTestUtils", package: "swift-nio"),
]),
.target(name: "SotoXML", dependencies: [
.byName(name: "CSotoExpat"),
]),
.target(
name: "SotoXML",
dependencies: [
.byName(name: "CSotoExpat"),
],
swiftSettings: swiftSettings
),
.target(name: "CSotoExpat", dependencies: []),
.target(name: "INIParser", dependencies: []),

.target(
name: "INIParser",
dependencies: [],
swiftSettings: swiftSettings
),
.testTarget(
name: "SotoCoreTests",
dependencies: [
Expand Down
4 changes: 4 additions & 0 deletions Sources/SotoCore/Encoder/EventStreamDecoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@

import Foundation
import NIOCore
#if compiler(>=5.10)
internal import SotoXML
#else
@_implementationOnly import SotoXML
#endif

/// Event stream decoder. Decodes top level `:event-type` header and then passes the payload
/// to another decoder based off the `:content-type` header
Expand Down
4 changes: 4 additions & 0 deletions Sources/SotoCore/HTTP/AWSHTTPRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ import NIOCore
import NIOFoundationCompat
import NIOHTTP1
import SotoSignerV4
#if compiler(>=5.10)
internal import SotoXML
#else
@_implementationOnly import SotoXML
#endif

/// Object encapsulating all the information needed to generate a raw HTTP request to AWS
public struct AWSHTTPRequest {
Expand Down
4 changes: 4 additions & 0 deletions Sources/SotoCore/HTTP/AWSHTTPResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ import Logging
import NIOCore
import NIOFoundationCompat
import NIOHTTP1
#if compiler(>=5.10)
internal import SotoXML
#else
@_implementationOnly import SotoXML
#endif

/// Structure encapsulating an HTTP Response
public struct AWSHTTPResponse {
Expand Down
4 changes: 4 additions & 0 deletions Sources/SotoCore/Middleware/Middleware/S3Middleware.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
import Crypto
import Foundation
@_spi(SotoInternal) import SotoSignerV4
#if compiler(>=5.10)
internal import SotoXML
#else
@_implementationOnly import SotoXML
#endif

/// Middleware applied to S3 service
///
Expand Down

0 comments on commit 4854964

Please sign in to comment.