|
| 1 | +cabal-version: 3.0 |
| 2 | +name: ouroboros-network-framework |
| 3 | +version: 0.18.0.1 |
| 4 | +synopsis: Ouroboros network framework |
| 5 | +description: Ouroboros network framework. |
| 6 | +license: Apache-2.0 |
| 7 | +license-files: |
| 8 | + LICENSE |
| 9 | + NOTICE |
| 10 | + |
| 11 | +copyright: 2019-2023 Input Output Global Inc (IOG), 2023-2025 Intersect |
| 12 | +author: Alexander Vieth, Duncan Coutts, Marcin Szamotulski |
| 13 | + |
| 14 | +category: Network |
| 15 | +build-type: Simple |
| 16 | +extra-doc-files: CHANGELOG.md |
| 17 | + |
| 18 | +flag ipv6 |
| 19 | + description: Enable IPv6 test cases |
| 20 | + manual: True |
| 21 | + -- Default to False since travis lacks IPv6 support |
| 22 | + default: False |
| 23 | + |
| 24 | +library |
| 25 | + exposed-modules: |
| 26 | + Data.Cache |
| 27 | + Data.Wedge |
| 28 | + NoThunks.Class.Orphans |
| 29 | + Ouroboros.Network.Channel |
| 30 | + Ouroboros.Network.ConnectionHandler |
| 31 | + Ouroboros.Network.ConnectionId |
| 32 | + Ouroboros.Network.ConnectionManager.ConnMap |
| 33 | + Ouroboros.Network.ConnectionManager.Core |
| 34 | + Ouroboros.Network.ConnectionManager.InformationChannel |
| 35 | + Ouroboros.Network.ConnectionManager.State |
| 36 | + Ouroboros.Network.ConnectionManager.Types |
| 37 | + Ouroboros.Network.Context |
| 38 | + Ouroboros.Network.Driver |
| 39 | + Ouroboros.Network.Driver.Limits |
| 40 | + Ouroboros.Network.Driver.Simple |
| 41 | + Ouroboros.Network.Driver.Stateful |
| 42 | + Ouroboros.Network.ErrorPolicy |
| 43 | + Ouroboros.Network.IOManager |
| 44 | + Ouroboros.Network.InboundGovernor |
| 45 | + Ouroboros.Network.InboundGovernor.Event |
| 46 | + Ouroboros.Network.InboundGovernor.State |
| 47 | + Ouroboros.Network.Mux |
| 48 | + Ouroboros.Network.MuxMode |
| 49 | + Ouroboros.Network.Protocol.Handshake |
| 50 | + Ouroboros.Network.Protocol.Handshake.Client |
| 51 | + Ouroboros.Network.Protocol.Handshake.Codec |
| 52 | + Ouroboros.Network.Protocol.Handshake.Server |
| 53 | + Ouroboros.Network.Protocol.Handshake.Type |
| 54 | + Ouroboros.Network.Protocol.Handshake.Unversioned |
| 55 | + Ouroboros.Network.Protocol.Handshake.Version |
| 56 | + Ouroboros.Network.RawBearer |
| 57 | + Ouroboros.Network.RethrowPolicy |
| 58 | + Ouroboros.Network.Server.ConnectionTable |
| 59 | + Ouroboros.Network.Server.RateLimiting |
| 60 | + Ouroboros.Network.Server.Socket |
| 61 | + Ouroboros.Network.Server2 |
| 62 | + Ouroboros.Network.Snocket |
| 63 | + Ouroboros.Network.Socket |
| 64 | + Ouroboros.Network.Subscription |
| 65 | + Ouroboros.Network.Subscription.Client |
| 66 | + Ouroboros.Network.Subscription.Dns |
| 67 | + Ouroboros.Network.Subscription.Ip |
| 68 | + Ouroboros.Network.Subscription.PeerState |
| 69 | + Ouroboros.Network.Subscription.Subscriber |
| 70 | + Ouroboros.Network.Subscription.Worker |
| 71 | + Simulation.Network.Snocket |
| 72 | + |
| 73 | + -- other-extensions: |
| 74 | + build-depends: |
| 75 | + -- ^ only to derive nothunk instances |
| 76 | + Win32-network ^>=0.2, |
| 77 | + async >=2.1 && <2.3, |
| 78 | + base >=4.12 && <4.22, |
| 79 | + bytestring >=0.10 && <0.13, |
| 80 | + cardano-prelude, |
| 81 | + cborg >=0.2.1 && <0.3, |
| 82 | + containers >=0.5 && <0.8, |
| 83 | + contra-tracer, |
| 84 | + deepseq, |
| 85 | + dns <4.3, |
| 86 | + hashable, |
| 87 | + io-classes ^>=1.5.0, |
| 88 | + iproute >=1.7 && <1.8, |
| 89 | + monoidal-synchronisation ^>=0.1.0.6, |
| 90 | + mtl, |
| 91 | + network ^>=3.2.7, |
| 92 | + network-mux ^>=0.8.0.1, |
| 93 | + nothunks, |
| 94 | + nothunks ^>=0.1.4 || ^>=0.2, |
| 95 | + ouroboros-network-api ^>=0.14, |
| 96 | + ouroboros-network-testing, |
| 97 | + psqueues, |
| 98 | + quiet, |
| 99 | + random, |
| 100 | + si-timers, |
| 101 | + stm, |
| 102 | + strict-stm, |
| 103 | + text, |
| 104 | + typed-protocols ^>=0.3, |
| 105 | + typed-protocols-cborg ^>=0.3, |
| 106 | + typed-protocols-stateful ^>=0.3, |
| 107 | + |
| 108 | + if os(windows) |
| 109 | + build-depends: Win32 >=2.5.4.1 && <3.0 |
| 110 | + hs-source-dirs: src |
| 111 | + default-language: Haskell2010 |
| 112 | + default-extensions: ImportQualifiedPost |
| 113 | + ghc-options: |
| 114 | + -Wall |
| 115 | + -Wcompat |
| 116 | + -Wincomplete-uni-patterns |
| 117 | + -Wincomplete-record-updates |
| 118 | + -Wpartial-fields |
| 119 | + -Widentities |
| 120 | + -Wredundant-constraints |
| 121 | + -Wno-unticked-promoted-constructors |
| 122 | + -Wunused-packages |
| 123 | + |
| 124 | +library testlib |
| 125 | + visibility: public |
| 126 | + hs-source-dirs: testlib |
| 127 | + exposed-modules: |
| 128 | + Test.Ouroboros.Network.ConnectionManager.Experiments |
| 129 | + Test.Ouroboros.Network.ConnectionManager.Timeouts |
| 130 | + Test.Ouroboros.Network.ConnectionManager.Utils |
| 131 | + Test.Ouroboros.Network.InboundGovernor.Utils |
| 132 | + Test.Ouroboros.Network.Orphans |
| 133 | + Test.Ouroboros.Network.RawBearer.Utils |
| 134 | + |
| 135 | + other-modules: |
| 136 | + build-depends: |
| 137 | + QuickCheck, |
| 138 | + base >=4.14 && <4.22, |
| 139 | + bytestring, |
| 140 | + cborg, |
| 141 | + containers, |
| 142 | + contra-tracer, |
| 143 | + hashable, |
| 144 | + io-classes, |
| 145 | + io-sim, |
| 146 | + network-mux, |
| 147 | + ouroboros-network-api, |
| 148 | + ouroboros-network-framework, |
| 149 | + ouroboros-network-testing, |
| 150 | + quickcheck-monoids, |
| 151 | + random, |
| 152 | + serialise, |
| 153 | + si-timers, |
| 154 | + strict-stm, |
| 155 | + typed-protocols, |
| 156 | + typed-protocols-examples, |
| 157 | + |
| 158 | + default-language: Haskell2010 |
| 159 | + default-extensions: ImportQualifiedPost |
| 160 | + ghc-options: |
| 161 | + -Wall |
| 162 | + -Wcompat |
| 163 | + -Wincomplete-uni-patterns |
| 164 | + -Wincomplete-record-updates |
| 165 | + -Wpartial-fields |
| 166 | + -Widentities |
| 167 | + -Wredundant-constraints |
| 168 | + -Wno-unticked-promoted-constructors |
| 169 | + -Wunused-packages |
| 170 | + |
| 171 | +test-suite sim-tests |
| 172 | + type: exitcode-stdio-1.0 |
| 173 | + main-is: Main.hs |
| 174 | + hs-source-dirs: sim-tests |
| 175 | + other-modules: |
| 176 | + Test.Ouroboros.Network.ConnectionManager |
| 177 | + Test.Ouroboros.Network.RateLimiting |
| 178 | + Test.Ouroboros.Network.RawBearer |
| 179 | + Test.Ouroboros.Network.Server2.Sim |
| 180 | + Test.Ouroboros.Network.Socket |
| 181 | + Test.Ouroboros.Network.Subscription |
| 182 | + Test.Simulation.Network.Snocket |
| 183 | + |
| 184 | + build-depends: |
| 185 | + QuickCheck, |
| 186 | + base >=4.14 && <4.22, |
| 187 | + bytestring, |
| 188 | + cborg, |
| 189 | + containers, |
| 190 | + contra-tracer, |
| 191 | + directory, |
| 192 | + dns, |
| 193 | + io-classes, |
| 194 | + io-sim, |
| 195 | + iproute, |
| 196 | + monoidal-synchronisation, |
| 197 | + network, |
| 198 | + network-mux, |
| 199 | + ouroboros-network-api, |
| 200 | + ouroboros-network-framework, |
| 201 | + ouroboros-network-framework:testlib, |
| 202 | + ouroboros-network-testing, |
| 203 | + pretty-simple, |
| 204 | + psqueues, |
| 205 | + quickcheck-instances, |
| 206 | + quickcheck-monoids, |
| 207 | + quiet, |
| 208 | + random, |
| 209 | + serialise, |
| 210 | + si-timers, |
| 211 | + strict-stm, |
| 212 | + tasty, |
| 213 | + tasty-quickcheck, |
| 214 | + text, |
| 215 | + time, |
| 216 | + typed-protocols, |
| 217 | + typed-protocols-cborg, |
| 218 | + typed-protocols-examples, |
| 219 | + with-utf8, |
| 220 | + |
| 221 | + if os(windows) |
| 222 | + build-depends: Win32-network <0.3 |
| 223 | + else |
| 224 | + build-depends: directory |
| 225 | + |
| 226 | + default-language: Haskell2010 |
| 227 | + default-extensions: ImportQualifiedPost |
| 228 | + ghc-options: |
| 229 | + -rtsopts |
| 230 | + -threaded |
| 231 | + -Wall |
| 232 | + -Wcompat |
| 233 | + -Wincomplete-uni-patterns |
| 234 | + -Wincomplete-record-updates |
| 235 | + -Wpartial-fields |
| 236 | + -Widentities |
| 237 | + -Wredundant-constraints |
| 238 | + -Wno-unticked-promoted-constructors |
| 239 | + -Wunused-packages |
| 240 | + |
| 241 | + if flag(ipv6) |
| 242 | + cpp-options: -DOUROBOROS_NETWORK_IPV6 |
| 243 | + |
| 244 | +test-suite io-tests |
| 245 | + type: exitcode-stdio-1.0 |
| 246 | + main-is: Main.hs |
| 247 | + hs-source-dirs: io-tests |
| 248 | + other-modules: |
| 249 | + Test.Ouroboros.Network.Driver |
| 250 | + Test.Ouroboros.Network.RawBearer |
| 251 | + Test.Ouroboros.Network.Server2.IO |
| 252 | + Test.Ouroboros.Network.Socket |
| 253 | + Test.Ouroboros.Network.Subscription |
| 254 | + |
| 255 | + build-depends: |
| 256 | + QuickCheck, |
| 257 | + base >=4.14 && <4.22, |
| 258 | + bytestring, |
| 259 | + containers, |
| 260 | + contra-tracer, |
| 261 | + directory, |
| 262 | + dns, |
| 263 | + io-classes, |
| 264 | + io-sim, |
| 265 | + iproute, |
| 266 | + monoidal-synchronisation, |
| 267 | + network, |
| 268 | + network-mux, |
| 269 | + ouroboros-network-api, |
| 270 | + ouroboros-network-framework, |
| 271 | + ouroboros-network-framework:testlib, |
| 272 | + random, |
| 273 | + si-timers, |
| 274 | + strict-stm, |
| 275 | + tasty, |
| 276 | + tasty-quickcheck, |
| 277 | + time, |
| 278 | + typed-protocols, |
| 279 | + typed-protocols-examples >=0.5, |
| 280 | + typed-protocols-stateful, |
| 281 | + with-utf8, |
| 282 | + |
| 283 | + if os(windows) |
| 284 | + build-depends: Win32-network <0.3 |
| 285 | + default-language: Haskell2010 |
| 286 | + default-extensions: ImportQualifiedPost |
| 287 | + ghc-options: |
| 288 | + -rtsopts |
| 289 | + -threaded |
| 290 | + -Wall |
| 291 | + -Wcompat |
| 292 | + -Wincomplete-uni-patterns |
| 293 | + -Wincomplete-record-updates |
| 294 | + -Wpartial-fields |
| 295 | + -Widentities |
| 296 | + -Wredundant-constraints |
| 297 | + -Wno-unticked-promoted-constructors |
| 298 | + -Wunused-packages |
| 299 | + |
| 300 | +executable demo-ping-pong |
| 301 | + hs-source-dirs: demo |
| 302 | + main-is: ping-pong.hs |
| 303 | + build-depends: |
| 304 | + async, |
| 305 | + base >=4.14 && <4.22, |
| 306 | + bytestring, |
| 307 | + contra-tracer, |
| 308 | + directory, |
| 309 | + network-mux, |
| 310 | + ouroboros-network-api, |
| 311 | + ouroboros-network-framework, |
| 312 | + typed-protocols-examples, |
| 313 | + |
| 314 | + default-language: Haskell2010 |
| 315 | + default-extensions: ImportQualifiedPost |
| 316 | + ghc-options: |
| 317 | + -Wall |
| 318 | + -threaded |
| 319 | + -Wcompat |
| 320 | + -Wincomplete-uni-patterns |
| 321 | + -Wincomplete-record-updates |
| 322 | + -Wpartial-fields |
| 323 | + -Widentities |
| 324 | + -Wredundant-constraints |
| 325 | + -Wno-unticked-promoted-constructors |
| 326 | + -Wunused-packages |
| 327 | + |
| 328 | +executable demo-connection-manager |
| 329 | + hs-source-dirs: demo |
| 330 | + main-is: connection-manager.hs |
| 331 | + build-depends: |
| 332 | + base >=4.14 && <4.22, |
| 333 | + bytestring, |
| 334 | + contra-tracer, |
| 335 | + hashable, |
| 336 | + io-classes, |
| 337 | + network, |
| 338 | + network-mux, |
| 339 | + optparse-applicative, |
| 340 | + ouroboros-network-api, |
| 341 | + ouroboros-network-framework, |
| 342 | + random, |
| 343 | + si-timers, |
| 344 | + strict-stm, |
| 345 | + typed-protocols, |
| 346 | + typed-protocols-examples, |
| 347 | + |
| 348 | + default-language: Haskell2010 |
| 349 | + default-extensions: ImportQualifiedPost |
| 350 | + ghc-options: |
| 351 | + -Wall |
| 352 | + -threaded |
| 353 | + -Wcompat |
| 354 | + -Wincomplete-uni-patterns |
| 355 | + -Wincomplete-record-updates |
| 356 | + -Wpartial-fields |
| 357 | + -Widentities |
| 358 | + -Wredundant-constraints |
| 359 | + -Wno-unticked-promoted-constructors |
| 360 | + -Wunused-packages |
0 commit comments