|
| 1 | +cabal-version: 3.0 |
| 2 | +name: network-mux |
| 3 | +version: 0.8.0.1 |
| 4 | +synopsis: Multiplexing library |
| 5 | +description: Multiplexing library. |
| 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: Duncan Coutts, Marc Fontaine, Karl Knutsson, Marcin Szamotulski, Alexander Vieth, Neil Davies |
| 13 | + |
| 14 | +category: Network |
| 15 | +build-type: Simple |
| 16 | +extra-doc-files: |
| 17 | + CHANGELOG.md |
| 18 | + README.md |
| 19 | + |
| 20 | +flag ipv6 |
| 21 | + description: Enable IPv6 test cases |
| 22 | + manual: True |
| 23 | + -- Default to False since travis lacks IPv6 support |
| 24 | + default: False |
| 25 | + |
| 26 | +flag tracetcpinfo |
| 27 | + description: Enable costly Linux only tracing of the kernel's tcpinfo |
| 28 | + manual: True |
| 29 | + default: False |
| 30 | + |
| 31 | +common demo-deps |
| 32 | + default-language: Haskell2010 |
| 33 | + default-extensions: ImportQualifiedPost |
| 34 | + ghc-options: |
| 35 | + -threaded |
| 36 | + -Wall |
| 37 | + -fno-ignore-asserts |
| 38 | + -Wcompat |
| 39 | + -Wincomplete-uni-patterns |
| 40 | + -Wincomplete-record-updates |
| 41 | + -Wpartial-fields |
| 42 | + -Widentities |
| 43 | + -Wredundant-constraints |
| 44 | + -Wunused-packages |
| 45 | + |
| 46 | +library |
| 47 | + build-depends: |
| 48 | + -- The Windows version of network-3.1.2 is missing |
| 49 | + -- functions, see |
| 50 | + -- https://github.com/haskell/network/issues/484 |
| 51 | + array >=0.5 && <0.6, |
| 52 | + base >=4.14 && <4.22, |
| 53 | + binary >=0.8 && <0.11, |
| 54 | + bytestring >=0.10 && <0.13, |
| 55 | + containers >=0.5 && <0.8, |
| 56 | + contra-tracer >=0.1 && <0.2, |
| 57 | + io-classes ^>=1.5.0, |
| 58 | + monoidal-synchronisation >=0.1 && <0.2, |
| 59 | + network ^>=3.2.7, |
| 60 | + process ^>=1.6, |
| 61 | + quiet, |
| 62 | + si-timers, |
| 63 | + statistics-linreg >=0.3 && <0.4, |
| 64 | + strict-stm, |
| 65 | + time >=1.9.1 && <1.14, |
| 66 | + vector >=0.12 && <0.14, |
| 67 | + |
| 68 | + if os(windows) |
| 69 | + build-depends: |
| 70 | + Win32 >=2.5.4.1 && <3.0, |
| 71 | + Win32-network >=0.2 && <0.3, |
| 72 | + |
| 73 | + if flag(tracetcpinfo) |
| 74 | + cpp-options: -DMUX_TRACE_TCPINFO |
| 75 | + hs-source-dirs: src |
| 76 | + exposed-modules: |
| 77 | + Control.Concurrent.JobPool |
| 78 | + Network.Mux |
| 79 | + Network.Mux.Bearer |
| 80 | + Network.Mux.Bearer.AttenuatedChannel |
| 81 | + Network.Mux.Bearer.Pipe |
| 82 | + Network.Mux.Bearer.Queues |
| 83 | + Network.Mux.Bearer.Socket |
| 84 | + Network.Mux.Channel |
| 85 | + Network.Mux.Codec |
| 86 | + Network.Mux.DeltaQ.TraceStats |
| 87 | + Network.Mux.DeltaQ.TraceStatsSupport |
| 88 | + Network.Mux.DeltaQ.TraceTransformer |
| 89 | + Network.Mux.DeltaQ.TraceTypes |
| 90 | + Network.Mux.Egress |
| 91 | + Network.Mux.Ingress |
| 92 | + Network.Mux.TCPInfo |
| 93 | + Network.Mux.Time |
| 94 | + Network.Mux.Timeout |
| 95 | + Network.Mux.Trace |
| 96 | + Network.Mux.Types |
| 97 | + |
| 98 | + if os(linux) |
| 99 | + other-modules: Network.Mux.TCPInfo.Linux |
| 100 | + |
| 101 | + if os(windows) |
| 102 | + exposed-modules: |
| 103 | + Network.Mux.Bearer.NamedPipe |
| 104 | + default-language: Haskell2010 |
| 105 | + default-extensions: ImportQualifiedPost |
| 106 | + ghc-options: |
| 107 | + -Wall |
| 108 | + -Wcompat |
| 109 | + -Widentities |
| 110 | + -Wincomplete-record-updates |
| 111 | + -Wincomplete-uni-patterns |
| 112 | + -Wno-unticked-promoted-constructors |
| 113 | + -Wpartial-fields |
| 114 | + -Wredundant-constraints |
| 115 | + -Wunused-packages |
| 116 | + |
| 117 | +test-suite test |
| 118 | + type: exitcode-stdio-1.0 |
| 119 | + hs-source-dirs: test |
| 120 | + main-is: Main.hs |
| 121 | + other-modules: |
| 122 | + Test.Mux |
| 123 | + Test.Mux.ReqResp |
| 124 | + Test.Mux.Timeout |
| 125 | + |
| 126 | + default-language: Haskell2010 |
| 127 | + default-extensions: ImportQualifiedPost |
| 128 | + build-depends: |
| 129 | + QuickCheck, |
| 130 | + Win32-network, |
| 131 | + base >=4.14 && <4.22, |
| 132 | + binary, |
| 133 | + bytestring, |
| 134 | + cborg, |
| 135 | + containers, |
| 136 | + contra-tracer, |
| 137 | + io-classes, |
| 138 | + io-sim, |
| 139 | + network, |
| 140 | + network-mux, |
| 141 | + primitive, |
| 142 | + serialise, |
| 143 | + si-timers, |
| 144 | + splitmix, |
| 145 | + strict-stm, |
| 146 | + tasty, |
| 147 | + tasty-quickcheck, |
| 148 | + |
| 149 | + if os(windows) |
| 150 | + build-depends: Win32 >=2.5.4.1 && <3.0 |
| 151 | + else |
| 152 | + build-depends: process |
| 153 | + |
| 154 | + ghc-options: |
| 155 | + -threaded |
| 156 | + -rtsopts |
| 157 | + -Wall |
| 158 | + -fno-ignore-asserts |
| 159 | + -Wcompat |
| 160 | + -Wincomplete-uni-patterns |
| 161 | + -Wincomplete-record-updates |
| 162 | + -Wpartial-fields |
| 163 | + -Widentities |
| 164 | + -Wredundant-constraints |
| 165 | + -Wno-unticked-promoted-constructors |
| 166 | + -Wunused-packages |
| 167 | + |
| 168 | + if flag(ipv6) |
| 169 | + cpp-options: -DOUROBOROS_NETWORK_IPV6 |
| 170 | + |
| 171 | +executable mux-demo |
| 172 | + import: demo-deps |
| 173 | + hs-source-dirs: |
| 174 | + demo |
| 175 | + test |
| 176 | + |
| 177 | + main-is: mux-demo.hs |
| 178 | + other-modules: Test.Mux.ReqResp |
| 179 | + build-depends: |
| 180 | + base >=4.14 && <4.22, |
| 181 | + bytestring, |
| 182 | + cborg, |
| 183 | + contra-tracer, |
| 184 | + io-classes, |
| 185 | + network-mux, |
| 186 | + primitive, |
| 187 | + serialise, |
| 188 | + stm, |
| 189 | + |
| 190 | + if os(windows) |
| 191 | + build-depends: |
| 192 | + Win32, |
| 193 | + Win32-network, |
| 194 | + else |
| 195 | + build-depends: |
| 196 | + directory, |
| 197 | + network, |
| 198 | + |
| 199 | +benchmark socket-read-write |
| 200 | + type: exitcode-stdio-1.0 |
| 201 | + hs-source-dirs: bench/socket_read_write |
| 202 | + main-is: Main.hs |
| 203 | + other-modules: |
| 204 | + build-depends: |
| 205 | + base >=4.14 && <4.22, |
| 206 | + bytestring, |
| 207 | + contra-tracer, |
| 208 | + io-classes, |
| 209 | + network, |
| 210 | + network-mux, |
| 211 | + si-timers, |
| 212 | + strict-stm, |
| 213 | + tasty-bench, |
| 214 | + |
| 215 | + default-extensions: ImportQualifiedPost |
| 216 | + ghc-options: |
| 217 | + -threaded |
| 218 | + -rtsopts |
| 219 | + -fproc-alignment=64 |
| 220 | + -Wall |
| 221 | + -Wcompat |
| 222 | + -Wincomplete-uni-patterns |
| 223 | + -Wincomplete-record-updates |
| 224 | + -Wpartial-fields |
| 225 | + -Widentities |
| 226 | + -Wredundant-constraints |
| 227 | + -Wunused-packages |
| 228 | + |
| 229 | + default-language: Haskell2010 |
0 commit comments