mirror of
https://github.com/laosb/swift-minisign.git
synced 2025-05-01 02:11:08 +00:00
Add Swift 5.8+ package configuration for backward compatibility with old
toolchains
This commit is contained in:
parent
17aa683ffd
commit
2248fe8c01
2 changed files with 45 additions and 0 deletions
|
@ -0,0 +1,44 @@
|
||||||
|
// swift-tools-version: 5.8
|
||||||
|
|
||||||
|
import PackageDescription
|
||||||
|
|
||||||
|
let package = Package(
|
||||||
|
name: "Minisign",
|
||||||
|
platforms: [
|
||||||
|
.macOS(.v10_15),
|
||||||
|
.iOS(.v13),
|
||||||
|
.visionOS(.v1),
|
||||||
|
.tvOS(.v13),
|
||||||
|
.watchOS(.v6),
|
||||||
|
],
|
||||||
|
products: [
|
||||||
|
// Products define the executables and libraries a package produces, making them visible to other packages.
|
||||||
|
.library(
|
||||||
|
name: "Minisign",
|
||||||
|
targets: ["Minisign"]
|
||||||
|
)
|
||||||
|
],
|
||||||
|
dependencies: [
|
||||||
|
.package(url: "https://github.com/apple/swift-crypto", from: "2.0.0"),
|
||||||
|
.package(url: "https://github.com/lovetodream/swift-blake2", from: "0.1.0"),
|
||||||
|
],
|
||||||
|
targets: [
|
||||||
|
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
||||||
|
// Targets can depend on other targets in this package and products from dependencies.
|
||||||
|
.target(
|
||||||
|
name: "Minisign",
|
||||||
|
dependencies: [
|
||||||
|
.product(name: "Crypto", package: "swift-crypto"),
|
||||||
|
.product(name: "BLAKE2", package: "swift-blake2"),
|
||||||
|
],
|
||||||
|
swiftSettings: [
|
||||||
|
.define("UseSwiftCrypto")
|
||||||
|
]
|
||||||
|
),
|
||||||
|
.testTarget(
|
||||||
|
name: "MinisignTests",
|
||||||
|
dependencies: ["Minisign"]
|
||||||
|
),
|
||||||
|
],
|
||||||
|
swiftLanguageModes: [.version("6"), .v5],
|
||||||
|
)
|
|
@ -5,6 +5,7 @@ Swift implementation of Minisign, a simple and secure tool for signing and verif
|
||||||
This is a fork of [slarew/swift-minisign](https://github.com/slarew/swift-minisign), with these improvements:
|
This is a fork of [slarew/swift-minisign](https://github.com/slarew/swift-minisign), with these improvements:
|
||||||
|
|
||||||
- Convenient & efficient API for verifying (big) files
|
- Convenient & efficient API for verifying (big) files
|
||||||
|
- `Sendable` conformance & full Swift 6 support
|
||||||
- Replaced C wrapping `swift-crypto-blake2` with [pure Swift implementation of blake2b](https://github.com/lovetodream/swift-blake2).
|
- Replaced C wrapping `swift-crypto-blake2` with [pure Swift implementation of blake2b](https://github.com/lovetodream/swift-blake2).
|
||||||
- For Apple platforms, Swift Crypto dependency is now optional, controllable via trait `UseSwiftCrypto`.
|
- For Apple platforms, Swift Crypto dependency is now optional, controllable via trait `UseSwiftCrypto`.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue