|
| 1 | +cabal-version: 3.0 |
| 2 | +name: ouroboros-network-framework |
| 3 | +version: 0.19.0.0 |
| 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.State |
| 35 | + Ouroboros.Network.ConnectionManager.Types |
| 36 | + Ouroboros.Network.Context |
| 37 | + Ouroboros.Network.Driver |
| 38 | + Ouroboros.Network.Driver.Limits |
| 39 | + Ouroboros.Network.Driver.Simple |
| 40 | + Ouroboros.Network.Driver.Stateful |
| 41 | + Ouroboros.Network.IOManager |
| 42 | + Ouroboros.Network.InboundGovernor |
| 43 | + Ouroboros.Network.InboundGovernor.InformationChannel |
| 44 | + Ouroboros.Network.InboundGovernor.State |
| 45 | + Ouroboros.Network.Mux |
| 46 | + Ouroboros.Network.MuxMode |
| 47 | + Ouroboros.Network.Protocol.Handshake |
| 48 | + Ouroboros.Network.Protocol.Handshake.Client |
| 49 | + Ouroboros.Network.Protocol.Handshake.Codec |
| 50 | + Ouroboros.Network.Protocol.Handshake.Server |
| 51 | + Ouroboros.Network.Protocol.Handshake.Type |
| 52 | + Ouroboros.Network.Protocol.Handshake.Unversioned |
| 53 | + Ouroboros.Network.Protocol.Handshake.Version |
| 54 | + Ouroboros.Network.RawBearer |
| 55 | + Ouroboros.Network.RethrowPolicy |
| 56 | + Ouroboros.Network.Server |
| 57 | + Ouroboros.Network.Server.ConnectionTable |
| 58 | + Ouroboros.Network.Server.RateLimiting |
| 59 | + Ouroboros.Network.Server.Simple |
| 60 | + Ouroboros.Network.Snocket |
| 61 | + Ouroboros.Network.Socket |
| 62 | + Simulation.Network.Snocket |
| 63 | + |
| 64 | + -- other-extensions: |
| 65 | + build-depends: |
| 66 | + -- ^ only to derive nothunk instances |
| 67 | + Win32-network ^>=0.2, |
| 68 | + base >=4.12 && <4.22, |
| 69 | + bytestring >=0.10 && <0.13, |
| 70 | + cardano-strict-containers, |
| 71 | + cborg >=0.2.1 && <0.3, |
| 72 | + containers >=0.5 && <0.8, |
| 73 | + contra-tracer, |
| 74 | + deepseq, |
| 75 | + hashable, |
| 76 | + io-classes:{io-classes, si-timers, strict-stm} ^>=1.8.0.1, |
| 77 | + monoidal-synchronisation ^>=0.1.0.6, |
| 78 | + network ^>=3.2.7, |
| 79 | + network-mux ^>=0.9, |
| 80 | + nothunks, |
| 81 | + nothunks ^>=0.1.4 || ^>=0.2, |
| 82 | + ouroboros-network-api ^>=0.15 || ^>=0.16, |
| 83 | + ouroboros-network-testing, |
| 84 | + psqueues, |
| 85 | + quiet, |
| 86 | + random ^>=1.2, |
| 87 | + text, |
| 88 | + typed-protocols:{typed-protocols, cborg, stateful} ^>=1.0, |
| 89 | + |
| 90 | + if os(windows) |
| 91 | + build-depends: Win32 >=2.5.4.1 && <3.0 |
| 92 | + hs-source-dirs: src |
| 93 | + default-language: Haskell2010 |
| 94 | + default-extensions: ImportQualifiedPost |
| 95 | + ghc-options: |
| 96 | + -Wall |
| 97 | + -Wcompat |
| 98 | + -Wincomplete-uni-patterns |
| 99 | + -Wincomplete-record-updates |
| 100 | + -Wpartial-fields |
| 101 | + -Widentities |
| 102 | + -Wredundant-constraints |
| 103 | + -Wno-unticked-promoted-constructors |
| 104 | + -Wunused-packages |
| 105 | + |
| 106 | +library testlib |
| 107 | + visibility: public |
| 108 | + hs-source-dirs: testlib |
| 109 | + exposed-modules: |
| 110 | + Test.Ouroboros.Network.ConnectionManager.Experiments |
| 111 | + Test.Ouroboros.Network.ConnectionManager.Timeouts |
| 112 | + Test.Ouroboros.Network.ConnectionManager.Utils |
| 113 | + Test.Ouroboros.Network.InboundGovernor.Utils |
| 114 | + Test.Ouroboros.Network.Orphans |
| 115 | + Test.Ouroboros.Network.RawBearer.Utils |
| 116 | + |
| 117 | + other-modules: |
| 118 | + build-depends: |
| 119 | + QuickCheck >=2.16, |
| 120 | + base >=4.14 && <4.22, |
| 121 | + bytestring, |
| 122 | + cborg, |
| 123 | + containers, |
| 124 | + contra-tracer, |
| 125 | + hashable, |
| 126 | + io-classes:{io-classes, si-timers, strict-stm}, |
| 127 | + io-sim, |
| 128 | + network-mux, |
| 129 | + ouroboros-network-api, |
| 130 | + ouroboros-network-framework, |
| 131 | + ouroboros-network-testing, |
| 132 | + random, |
| 133 | + serialise, |
| 134 | + typed-protocols:{typed-protocols, examples}, |
| 135 | + |
| 136 | + default-language: Haskell2010 |
| 137 | + default-extensions: ImportQualifiedPost |
| 138 | + ghc-options: |
| 139 | + -Wall |
| 140 | + -Wcompat |
| 141 | + -Wincomplete-uni-patterns |
| 142 | + -Wincomplete-record-updates |
| 143 | + -Wpartial-fields |
| 144 | + -Widentities |
| 145 | + -Wredundant-constraints |
| 146 | + -Wno-unticked-promoted-constructors |
| 147 | + -Wunused-packages |
| 148 | + |
| 149 | +test-suite sim-tests |
| 150 | + type: exitcode-stdio-1.0 |
| 151 | + main-is: Main.hs |
| 152 | + hs-source-dirs: sim-tests |
| 153 | + other-modules: |
| 154 | + Test.Ouroboros.Network.ConnectionManager |
| 155 | + Test.Ouroboros.Network.RateLimiting |
| 156 | + Test.Ouroboros.Network.RawBearer |
| 157 | + Test.Ouroboros.Network.Server.Sim |
| 158 | + Test.Simulation.Network.Snocket |
| 159 | + |
| 160 | + build-depends: |
| 161 | + QuickCheck >=2.16, |
| 162 | + base >=4.14 && <4.22, |
| 163 | + bytestring, |
| 164 | + cborg, |
| 165 | + containers, |
| 166 | + contra-tracer, |
| 167 | + io-classes:{io-classes, si-timers, strict-stm}, |
| 168 | + io-sim, |
| 169 | + monoidal-synchronisation, |
| 170 | + network-mux, |
| 171 | + ouroboros-network-api, |
| 172 | + ouroboros-network-framework, |
| 173 | + ouroboros-network-framework:testlib, |
| 174 | + ouroboros-network-testing, |
| 175 | + pretty-simple, |
| 176 | + psqueues, |
| 177 | + quickcheck-instances, |
| 178 | + quiet, |
| 179 | + random, |
| 180 | + serialise, |
| 181 | + tasty, |
| 182 | + tasty-quickcheck, |
| 183 | + text, |
| 184 | + typed-protocols:{typed-protocols, cborg, examples}, |
| 185 | + with-utf8, |
| 186 | + |
| 187 | + default-language: Haskell2010 |
| 188 | + default-extensions: ImportQualifiedPost |
| 189 | + ghc-options: |
| 190 | + -rtsopts |
| 191 | + -threaded |
| 192 | + -Wall |
| 193 | + -Wcompat |
| 194 | + -Wincomplete-uni-patterns |
| 195 | + -Wincomplete-record-updates |
| 196 | + -Wpartial-fields |
| 197 | + -Widentities |
| 198 | + -Wredundant-constraints |
| 199 | + -Wno-unticked-promoted-constructors |
| 200 | + -Wunused-packages |
| 201 | + |
| 202 | + if flag(ipv6) |
| 203 | + cpp-options: -DOUROBOROS_NETWORK_IPV6 |
| 204 | + |
| 205 | +test-suite io-tests |
| 206 | + type: exitcode-stdio-1.0 |
| 207 | + main-is: Main.hs |
| 208 | + hs-source-dirs: io-tests |
| 209 | + other-modules: |
| 210 | + Test.Ouroboros.Network.Driver |
| 211 | + Test.Ouroboros.Network.RawBearer |
| 212 | + Test.Ouroboros.Network.Server.IO |
| 213 | + Test.Ouroboros.Network.Socket |
| 214 | + |
| 215 | + build-depends: |
| 216 | + QuickCheck >=2.16, |
| 217 | + base >=4.14 && <4.22, |
| 218 | + bytestring, |
| 219 | + contra-tracer, |
| 220 | + directory, |
| 221 | + io-classes:{io-classes, si-timers, strict-stm}, |
| 222 | + io-sim, |
| 223 | + monoidal-synchronisation, |
| 224 | + network, |
| 225 | + network-mux, |
| 226 | + ouroboros-network-api, |
| 227 | + ouroboros-network-framework, |
| 228 | + ouroboros-network-framework:testlib, |
| 229 | + random, |
| 230 | + tasty, |
| 231 | + tasty-quickcheck, |
| 232 | + time, |
| 233 | + typed-protocols:{typed-protocols, examples, stateful}, |
| 234 | + with-utf8, |
| 235 | + |
| 236 | + if os(windows) |
| 237 | + build-depends: Win32-network <0.3 |
| 238 | + default-language: Haskell2010 |
| 239 | + default-extensions: ImportQualifiedPost |
| 240 | + ghc-options: |
| 241 | + -rtsopts |
| 242 | + -threaded |
| 243 | + -Wall |
| 244 | + -Wcompat |
| 245 | + -Wincomplete-uni-patterns |
| 246 | + -Wincomplete-record-updates |
| 247 | + -Wpartial-fields |
| 248 | + -Widentities |
| 249 | + -Wredundant-constraints |
| 250 | + -Wno-unticked-promoted-constructors |
| 251 | + -Wunused-packages |
| 252 | + |
| 253 | +executable demo-ping-pong |
| 254 | + hs-source-dirs: demo |
| 255 | + main-is: ping-pong.hs |
| 256 | + build-depends: |
| 257 | + async, |
| 258 | + base >=4.14 && <4.22, |
| 259 | + bytestring, |
| 260 | + contra-tracer, |
| 261 | + directory, |
| 262 | + network-mux, |
| 263 | + ouroboros-network-api, |
| 264 | + ouroboros-network-framework, |
| 265 | + typed-protocols:examples, |
| 266 | + |
| 267 | + default-language: Haskell2010 |
| 268 | + default-extensions: ImportQualifiedPost |
| 269 | + ghc-options: |
| 270 | + -Wall |
| 271 | + -threaded |
| 272 | + -Wcompat |
| 273 | + -Wincomplete-uni-patterns |
| 274 | + -Wincomplete-record-updates |
| 275 | + -Wpartial-fields |
| 276 | + -Widentities |
| 277 | + -Wredundant-constraints |
| 278 | + -Wno-unticked-promoted-constructors |
| 279 | + -Wunused-packages |
| 280 | + |
| 281 | +executable demo-connection-manager |
| 282 | + hs-source-dirs: demo |
| 283 | + main-is: connection-manager.hs |
| 284 | + build-depends: |
| 285 | + base >=4.14 && <4.22, |
| 286 | + bytestring, |
| 287 | + contra-tracer, |
| 288 | + hashable, |
| 289 | + io-classes:{io-classes, si-timers, strict-stm}, |
| 290 | + network, |
| 291 | + network-mux, |
| 292 | + optparse-applicative, |
| 293 | + ouroboros-network-api, |
| 294 | + ouroboros-network-framework, |
| 295 | + random, |
| 296 | + typed-protocols:{typed-protocols, examples}, |
| 297 | + |
| 298 | + default-language: Haskell2010 |
| 299 | + default-extensions: ImportQualifiedPost |
| 300 | + ghc-options: |
| 301 | + -Wall |
| 302 | + -threaded |
| 303 | + -Wcompat |
| 304 | + -Wincomplete-uni-patterns |
| 305 | + -Wincomplete-record-updates |
| 306 | + -Wpartial-fields |
| 307 | + -Widentities |
| 308 | + -Wredundant-constraints |
| 309 | + -Wno-unticked-promoted-constructors |
| 310 | + -Wunused-packages |
0 commit comments