|
| 1 | +cabal-version: 3.0 |
| 2 | +name: ouroboros-network-protocols |
| 3 | +version: 0.14.0.1 |
| 4 | +synopsis: Ouroboros Network Protocols |
| 5 | +description: Ouroboros Network Protocols. |
| 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, Marcin Szamotulski, Duncan Coutts |
| 13 | + |
| 14 | +category: Network |
| 15 | +build-type: Simple |
| 16 | +extra-doc-files: CHANGELOG.md |
| 17 | + |
| 18 | +flag asserts |
| 19 | + description: Enable assertions |
| 20 | + manual: False |
| 21 | + default: False |
| 22 | + |
| 23 | +flag cddl |
| 24 | + description: Enable CDDL based tests of the CBOR encoding |
| 25 | + manual: True |
| 26 | + -- These tests need the cddl and the cbor-diag Ruby-package |
| 27 | + default: True |
| 28 | + |
| 29 | +source-repository head |
| 30 | + type: git |
| 31 | + location: https://github.com/intersectmbo/ouroboros-network |
| 32 | + |
| 33 | +library |
| 34 | + hs-source-dirs: src |
| 35 | + -- At this experiment/prototype stage everything is exposed. |
| 36 | + -- This has to be tidied up once the design becomes clear. |
| 37 | + exposed-modules: |
| 38 | + Ouroboros.Network.Protocol.BlockFetch.Client |
| 39 | + Ouroboros.Network.Protocol.BlockFetch.Codec |
| 40 | + Ouroboros.Network.Protocol.BlockFetch.Server |
| 41 | + Ouroboros.Network.Protocol.BlockFetch.Type |
| 42 | + Ouroboros.Network.Protocol.ChainSync.Client |
| 43 | + Ouroboros.Network.Protocol.ChainSync.ClientPipelined |
| 44 | + Ouroboros.Network.Protocol.ChainSync.Codec |
| 45 | + Ouroboros.Network.Protocol.ChainSync.PipelineDecision |
| 46 | + Ouroboros.Network.Protocol.ChainSync.Server |
| 47 | + Ouroboros.Network.Protocol.ChainSync.Type |
| 48 | + Ouroboros.Network.Protocol.KeepAlive.Client |
| 49 | + Ouroboros.Network.Protocol.KeepAlive.Codec |
| 50 | + Ouroboros.Network.Protocol.KeepAlive.Server |
| 51 | + Ouroboros.Network.Protocol.KeepAlive.Type |
| 52 | + Ouroboros.Network.Protocol.LocalStateQuery.Client |
| 53 | + Ouroboros.Network.Protocol.LocalStateQuery.Codec |
| 54 | + Ouroboros.Network.Protocol.LocalStateQuery.Server |
| 55 | + Ouroboros.Network.Protocol.LocalStateQuery.Type |
| 56 | + Ouroboros.Network.Protocol.LocalTxMonitor.Client |
| 57 | + Ouroboros.Network.Protocol.LocalTxMonitor.Codec |
| 58 | + Ouroboros.Network.Protocol.LocalTxMonitor.Server |
| 59 | + Ouroboros.Network.Protocol.LocalTxMonitor.Type |
| 60 | + Ouroboros.Network.Protocol.LocalTxSubmission.Client |
| 61 | + Ouroboros.Network.Protocol.LocalTxSubmission.Codec |
| 62 | + Ouroboros.Network.Protocol.LocalTxSubmission.Server |
| 63 | + Ouroboros.Network.Protocol.LocalTxSubmission.Type |
| 64 | + Ouroboros.Network.Protocol.PeerSharing.Client |
| 65 | + Ouroboros.Network.Protocol.PeerSharing.Codec |
| 66 | + Ouroboros.Network.Protocol.PeerSharing.Server |
| 67 | + Ouroboros.Network.Protocol.PeerSharing.Type |
| 68 | + Ouroboros.Network.Protocol.TxSubmission2.Client |
| 69 | + Ouroboros.Network.Protocol.TxSubmission2.Codec |
| 70 | + Ouroboros.Network.Protocol.TxSubmission2.Server |
| 71 | + Ouroboros.Network.Protocol.TxSubmission2.Type |
| 72 | + |
| 73 | + default-language: Haskell2010 |
| 74 | + default-extensions: ImportQualifiedPost |
| 75 | + other-extensions: |
| 76 | + BangPatterns |
| 77 | + DataKinds |
| 78 | + EmptyCase |
| 79 | + ExistentialQuantification |
| 80 | + FlexibleContexts |
| 81 | + FlexibleInstances |
| 82 | + FunctionalDependencies |
| 83 | + GADTSyntax |
| 84 | + GADTs |
| 85 | + GeneralizedNewtypeDeriving |
| 86 | + MultiParamTypeClasses |
| 87 | + NamedFieldPuns |
| 88 | + OverloadedStrings |
| 89 | + PolyKinds |
| 90 | + RankNTypes |
| 91 | + RecordWildCards |
| 92 | + ScopedTypeVariables |
| 93 | + TemplateHaskell |
| 94 | + TupleSections |
| 95 | + TypeApplications |
| 96 | + TypeFamilies |
| 97 | + TypeInType |
| 98 | + |
| 99 | + build-depends: |
| 100 | + base >=4.14 && <4.22, |
| 101 | + bytestring >=0.10 && <0.13, |
| 102 | + cborg >=0.2.1 && <0.3, |
| 103 | + containers, |
| 104 | + deepseq, |
| 105 | + io-classes ^>=1.5.0, |
| 106 | + nothunks, |
| 107 | + ouroboros-network-api ^>=0.14, |
| 108 | + quiet, |
| 109 | + serialise, |
| 110 | + si-timers, |
| 111 | + singletons, |
| 112 | + text, |
| 113 | + typed-protocols ^>=0.3, |
| 114 | + typed-protocols-cborg ^>=0.3, |
| 115 | + typed-protocols-stateful, |
| 116 | + typed-protocols-stateful-cborg, |
| 117 | + |
| 118 | + ghc-options: |
| 119 | + -Wall |
| 120 | + -Wno-unticked-promoted-constructors |
| 121 | + -Wcompat |
| 122 | + -Wincomplete-uni-patterns |
| 123 | + -Wincomplete-record-updates |
| 124 | + -Wpartial-fields |
| 125 | + -Widentities |
| 126 | + -Wredundant-constraints |
| 127 | + -Wunused-packages |
| 128 | + |
| 129 | + if flag(asserts) |
| 130 | + ghc-options: -fno-ignore-asserts |
| 131 | + |
| 132 | +library testlib |
| 133 | + visibility: public |
| 134 | + hs-source-dirs: testlib |
| 135 | + default-language: Haskell2010 |
| 136 | + default-extensions: ImportQualifiedPost |
| 137 | + exposed-modules: |
| 138 | + Ouroboros.Network.Protocol.BlockFetch.Codec.CDDL |
| 139 | + Ouroboros.Network.Protocol.BlockFetch.Direct |
| 140 | + Ouroboros.Network.Protocol.BlockFetch.Examples |
| 141 | + Ouroboros.Network.Protocol.BlockFetch.Test |
| 142 | + Ouroboros.Network.Protocol.ChainSync.Codec.CDDL |
| 143 | + Ouroboros.Network.Protocol.ChainSync.Direct |
| 144 | + Ouroboros.Network.Protocol.ChainSync.DirectPipelined |
| 145 | + Ouroboros.Network.Protocol.ChainSync.Examples |
| 146 | + Ouroboros.Network.Protocol.ChainSync.ExamplesPipelined |
| 147 | + Ouroboros.Network.Protocol.ChainSync.Test |
| 148 | + Ouroboros.Network.Protocol.Handshake.Direct |
| 149 | + Ouroboros.Network.Protocol.Handshake.Test |
| 150 | + Ouroboros.Network.Protocol.KeepAlive.Direct |
| 151 | + Ouroboros.Network.Protocol.KeepAlive.Examples |
| 152 | + Ouroboros.Network.Protocol.KeepAlive.Test |
| 153 | + Ouroboros.Network.Protocol.LocalStateQuery.Codec.CDDL |
| 154 | + Ouroboros.Network.Protocol.LocalStateQuery.Direct |
| 155 | + Ouroboros.Network.Protocol.LocalStateQuery.Examples |
| 156 | + Ouroboros.Network.Protocol.LocalStateQuery.Test |
| 157 | + Ouroboros.Network.Protocol.LocalTxMonitor.Codec.CDDL |
| 158 | + Ouroboros.Network.Protocol.LocalTxMonitor.Direct |
| 159 | + Ouroboros.Network.Protocol.LocalTxMonitor.Examples |
| 160 | + Ouroboros.Network.Protocol.LocalTxMonitor.Test |
| 161 | + Ouroboros.Network.Protocol.LocalTxSubmission.Codec.CDDL |
| 162 | + Ouroboros.Network.Protocol.LocalTxSubmission.Direct |
| 163 | + Ouroboros.Network.Protocol.LocalTxSubmission.Examples |
| 164 | + Ouroboros.Network.Protocol.LocalTxSubmission.Test |
| 165 | + Ouroboros.Network.Protocol.PeerSharing.Codec.CDDL |
| 166 | + Ouroboros.Network.Protocol.PeerSharing.Direct |
| 167 | + Ouroboros.Network.Protocol.PeerSharing.Examples |
| 168 | + Ouroboros.Network.Protocol.PeerSharing.Test |
| 169 | + Ouroboros.Network.Protocol.TxSubmission2.Codec.CDDL |
| 170 | + Ouroboros.Network.Protocol.TxSubmission2.Direct |
| 171 | + Ouroboros.Network.Protocol.TxSubmission2.Examples |
| 172 | + Ouroboros.Network.Protocol.TxSubmission2.Test |
| 173 | + Test.ChainGenerators |
| 174 | + Test.ChainProducerState |
| 175 | + Test.Data.CDDL |
| 176 | + Test.Data.PipeliningDepth |
| 177 | + Test.Ouroboros.Network.Protocol.Utils |
| 178 | + |
| 179 | + build-depends: |
| 180 | + QuickCheck, |
| 181 | + base >=4.14 && <4.22, |
| 182 | + bytestring, |
| 183 | + cardano-slotting:testlib ^>=0.2.0, |
| 184 | + cardano-strict-containers, |
| 185 | + cborg, |
| 186 | + containers, |
| 187 | + contra-tracer, |
| 188 | + deepseq, |
| 189 | + io-classes, |
| 190 | + io-sim, |
| 191 | + network, |
| 192 | + network-mux, |
| 193 | + ouroboros-network-api, |
| 194 | + ouroboros-network-framework, |
| 195 | + ouroboros-network-mock, |
| 196 | + ouroboros-network-protocols, |
| 197 | + pipes, |
| 198 | + quickcheck-instances, |
| 199 | + serialise, |
| 200 | + si-timers, |
| 201 | + strict-stm, |
| 202 | + tasty, |
| 203 | + tasty-quickcheck, |
| 204 | + text, |
| 205 | + typed-protocols, |
| 206 | + typed-protocols-stateful, |
| 207 | + |
| 208 | + ghc-options: |
| 209 | + -Wall |
| 210 | + -Wno-unticked-promoted-constructors |
| 211 | + -Wunused-packages |
| 212 | + |
| 213 | +test-suite test |
| 214 | + type: exitcode-stdio-1.0 |
| 215 | + hs-source-dirs: test |
| 216 | + main-is: Main.hs |
| 217 | + -- TODO: these two tests should be moved to `ouroboros-network-mock` |
| 218 | + other-modules: |
| 219 | + Test.AnchoredFragment |
| 220 | + Test.Chain |
| 221 | + |
| 222 | + default-language: Haskell2010 |
| 223 | + default-extensions: ImportQualifiedPost |
| 224 | + build-depends: |
| 225 | + -- ^ QuickCheck 2.15 has a |
| 226 | + -- regression that makes |
| 227 | + -- codec 3-splits tests take too |
| 228 | + -- long and too much memory. |
| 229 | + -- Possibly due to ByteString |
| 230 | + -- generator changes. |
| 231 | + QuickCheck ^>=2.14, |
| 232 | + base >=4.14 && <4.22, |
| 233 | + ouroboros-network-api, |
| 234 | + ouroboros-network-mock, |
| 235 | + ouroboros-network-protocols:testlib, |
| 236 | + ouroboros-network-testing ^>=0.8, |
| 237 | + tasty, |
| 238 | + tasty-quickcheck, |
| 239 | + |
| 240 | + ghc-options: |
| 241 | + -threaded |
| 242 | + -Wall |
| 243 | + -Wunused-packages |
| 244 | + -rtsopts |
| 245 | + |
| 246 | +test-suite cddl |
| 247 | + type: exitcode-stdio-1.0 |
| 248 | + hs-source-dirs: cddl |
| 249 | + main-is: Main.hs |
| 250 | + |
| 251 | + if flag(cddl) |
| 252 | + buildable: True |
| 253 | + else |
| 254 | + buildable: False |
| 255 | + |
| 256 | + default-language: Haskell2010 |
| 257 | + default-extensions: ImportQualifiedPost |
| 258 | + build-depends: |
| 259 | + QuickCheck, |
| 260 | + base >=4.14 && <4.22, |
| 261 | + bytestring, |
| 262 | + cborg, |
| 263 | + containers, |
| 264 | + directory, |
| 265 | + filepath, |
| 266 | + mtl, |
| 267 | + network, |
| 268 | + ouroboros-network-api, |
| 269 | + ouroboros-network-framework, |
| 270 | + ouroboros-network-mock, |
| 271 | + ouroboros-network-protocols, |
| 272 | + ouroboros-network-protocols:testlib, |
| 273 | + process-extras, |
| 274 | + quickcheck-instances, |
| 275 | + serialise, |
| 276 | + tasty, |
| 277 | + tasty-hunit, |
| 278 | + tasty-quickcheck, |
| 279 | + temporary, |
| 280 | + text, |
| 281 | + typed-protocols, |
| 282 | + typed-protocols-stateful, |
| 283 | + |
| 284 | + ghc-options: |
| 285 | + -threaded |
| 286 | + -Wall |
| 287 | + -Wno-unticked-promoted-constructors |
| 288 | + -Wcompat |
| 289 | + -Wunused-packages |
| 290 | + -rtsopts |
| 291 | + -with-rtsopts=-M400m |
| 292 | + |
| 293 | +test-suite bench |
| 294 | + type: exitcode-stdio-1.0 |
| 295 | + default-extensions: ImportQualifiedPost |
| 296 | + hs-source-dirs: bench-cddl |
| 297 | + main-is: Main.hs |
| 298 | + default-language: Haskell2010 |
| 299 | + build-depends: |
| 300 | + base >=4.14 && <4.22, |
| 301 | + bytestring, |
| 302 | + cborg, |
| 303 | + containers, |
| 304 | + deepseq, |
| 305 | + network, |
| 306 | + ouroboros-network-api, |
| 307 | + ouroboros-network-framework, |
| 308 | + ouroboros-network-protocols, |
| 309 | + ouroboros-network-protocols:testlib, |
| 310 | + tasty-bench, |
| 311 | + typed-protocols, |
| 312 | + typed-protocols-stateful, |
| 313 | + |
| 314 | + ghc-options: |
| 315 | + -Wall |
| 316 | + -Wno-unticked-promoted-constructors |
| 317 | + -Wcompat |
| 318 | + -Wunused-packages |
| 319 | + -rtsopts |
| 320 | + -with-rtsopts=-A32m |
| 321 | + -with-rtsopts=-T |
| 322 | + |
| 323 | + -- Important for comparing benchmarks results against a baseline run. |
| 324 | + -- Read: https://hackage.haskell.org/package/tasty-bench for details |
| 325 | + if impl(ghc >=8.6) |
| 326 | + ghc-options: -fproc-alignment=64 |
0 commit comments