mirror of
https://github.com/laosb/swift-minisign.git
synced 2025-04-30 09:51:08 +00:00
fix: dependencies & concurrency markups
This commit is contained in:
parent
c600a12016
commit
94a251ed0c
3 changed files with 7 additions and 6 deletions
|
@ -27,7 +27,7 @@ let package = Package(
|
|||
.default(enabledTraits: ["UseSwiftCrypto"]),
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/apple/swift-crypto", from: "2.0.0"),
|
||||
.package(url: "https://github.com/apple/swift-crypto", "1.0.0" ..< "4.0.0"),
|
||||
.package(url: "https://github.com/lovetodream/swift-blake2", from: "0.1.0")
|
||||
],
|
||||
targets: [
|
||||
|
@ -44,5 +44,6 @@ let package = Package(
|
|||
name: "MinisignTests",
|
||||
dependencies: ["Minisign"]
|
||||
),
|
||||
]
|
||||
],
|
||||
swiftLanguageModes: [.v6]
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// swift-tools-version: 5.8
|
||||
// swift-tools-version: 5.9
|
||||
|
||||
import PackageDescription
|
||||
|
||||
|
@ -18,7 +18,7 @@ let package = Package(
|
|||
)
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/apple/swift-crypto", from: "2.0.0"),
|
||||
.package(url: "https://github.com/apple/swift-crypto", "1.0.0" ..< "4.0.0"),
|
||||
.package(url: "https://github.com/lovetodream/swift-blake2", from: "0.1.0"),
|
||||
],
|
||||
targets: [
|
|
@ -6,9 +6,9 @@ import BLAKE2
|
|||
import Foundation
|
||||
|
||||
#if UseSwiftCrypto
|
||||
import Crypto
|
||||
@preconcurrency import Crypto
|
||||
#else
|
||||
import CryptoKit
|
||||
@preconcurrency import CryptoKit
|
||||
#endif
|
||||
|
||||
public enum SignatureAlgorithm: Sendable, RawRepresentable {
|
||||
|
|
Loading…
Add table
Reference in a new issue