// swift-tools-version: 6.0 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "sdlan", platforms: [ .iOS(.v17), .macOS(.v10_13) ], products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: "sdlan", targets: ["sdlan"]), ], dependencies: [ .package(url: "https://github.com/apple/swift-nio.git", from: "2.84.0"), .package(url: "https://github.com/apple/swift-protobuf.git", from: "1.26.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: "sdlan", dependencies: [ .product(name: "NIOCore", package: "swift-nio"), .product(name: "NIOPosix", package: "swift-nio"), .product(name: "SwiftProtobuf", package: "swift-protobuf") ] ), .testTarget( name: "sdlanTests", dependencies: ["sdlan"] ), ] )