@@ -46,7 +46,8 @@ let package = Package(
46
46
] ,
47
47
dependencies: [
48
48
. package ( url: " https://github.com/apple/swift-nio.git " , from: " 2.55.0 " ) ,
49
- . package ( url: " https://github.com/swift-server/swift-service-lifecycle.git " , from: " 2.0.0-beta.1 " ) ,
49
+ . package ( url: " https://github.com/apple/swift-nio-ssl " , from: " 2.25.0 " ) ,
50
+ . package ( url: " https://github.com/swift-server/swift-service-lifecycle.git " , from: " 2.1.0 " ) ,
50
51
. package ( url: " https://github.com/apple/swift-log.git " , from: " 1.0.0 " ) ,
51
52
// The zstd Swift package produces warnings that we cannot resolve:
52
53
// https://github.com/facebook/zstd/issues/3328
@@ -56,7 +57,7 @@ let package = Package(
56
57
. target(
57
58
name: " Crdkafka " ,
58
59
dependencies: [
59
- " COpenSSL " ,
60
+ . product ( name : " NIOSSL " , package : " swift-nio-ssl " ) ,
60
61
. product( name: " libzstd " , package : " zstd " ) ,
61
62
] ,
62
63
exclude: rdkafkaExclude,
@@ -65,7 +66,9 @@ let package = Package(
65
66
cSettings: [
66
67
// dummy folder, because config.h is included as "../config.h" in librdkafka
67
68
. headerSearchPath( " ./custom/config/dummy " ) ,
69
+ . headerSearchPath( " ./custom/include " ) ,
68
70
. headerSearchPath( " ./librdkafka/src " ) ,
71
+ . define( " _GNU_SOURCE " , to: " 1 " ) , // Fix build error for Swift 5.9 onwards
69
72
] ,
70
73
linkerSettings: [
71
74
. linkedLibrary( " curl " ) ,
@@ -88,14 +91,6 @@ let package = Package(
88
91
" Kafka " ,
89
92
]
90
93
) ,
91
- . systemLibrary(
92
- name: " COpenSSL " ,
93
- pkgConfig: " openssl " ,
94
- providers: [
95
- . brew( [ " libressl " ] ) ,
96
- . apt( [ " libssl-dev " ] ) ,
97
- ]
98
- ) ,
99
94
. testTarget(
100
95
name: " KafkaTests " ,
101
96
dependencies: [ " Kafka " ]
0 commit comments