Skip to content
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
8 changes: 2 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,16 @@ let package = Package(
.target(
name: "ContainerRegistry",
dependencies: [
.product(name: "Crypto", package: "swift-crypto", condition: .when(platforms: [.linux])),
.target(name: "Basics"), .product(name: "Crypto", package: "swift-crypto"),
.product(name: "HTTPTypes", package: "swift-http-types"),
.product(name: "HTTPTypesFoundation", package: "swift-http-types"),
.target(
name: "Basics" // AuthorizationProvider
),
]
),
.executableTarget(
name: "containertool",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Crypto", package: "swift-crypto", condition: .when(platforms: [.linux])),
.target(name: "ContainerRegistry"), .target(name: "VendorCNIOExtrasZlib"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
swiftSettings: [.swiftLanguageMode(.v5)]
),
Expand Down
5 changes: 0 additions & 5 deletions Sources/ContainerRegistry/Blobs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@

import Foundation
import HTTPTypes

#if canImport(CryptoKit)
import CryptoKit
#else
import Crypto
#endif

/// Calculates the digest of a blob of data.
/// - Parameter data: Blob of data to digest.
Expand Down
5 changes: 0 additions & 5 deletions Sources/ContainerRegistry/ImageManifest+Digest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@
//===----------------------------------------------------------------------===//

import Foundation

#if canImport(CryptoKit)
import CryptoKit
#else
import Crypto
#endif

public extension ImageManifest {
var digest: String {
Expand Down