|
| 1 | +cabal-version: 2.4 |
| 2 | +name: ekg-forward |
| 3 | +version: 0.9 |
| 4 | +synopsis: See README for more info |
| 5 | +description: See README for more info |
| 6 | +homepage: https://github.com/input-output-hk/ekg-forward |
| 7 | +bug-reports: https://github.com/input-output-hk/ekg-forward/issues |
| 8 | +license: Apache-2.0 |
| 9 | +license-file: LICENSE |
| 10 | +copyright: 2021-2023 Input Output Global Inc (IOG), 2023-2025 Intersect. |
| 11 | +author: IOHK |
| 12 | + |
| 13 | +category: System, Network |
| 14 | +build-type: Simple |
| 15 | +extra-doc-files: README.md |
| 16 | + CHANGELOG.md |
| 17 | + |
| 18 | +source-repository head |
| 19 | + type: git |
| 20 | + location: https://github.com/input-output-hk/ekg-forward.git |
| 21 | + |
| 22 | +common common-options |
| 23 | + build-depends: base >=4.12 && <5 |
| 24 | + |
| 25 | + ghc-options: -Wall |
| 26 | + -Wcompat |
| 27 | + -Widentities |
| 28 | + -Wincomplete-uni-patterns |
| 29 | + -Wincomplete-record-updates |
| 30 | + if impl(ghc >= 8.0) |
| 31 | + ghc-options: -Wredundant-constraints |
| 32 | + if impl(ghc >= 8.2) |
| 33 | + ghc-options: -fhide-source-paths |
| 34 | + if impl(ghc >= 8.4) |
| 35 | + ghc-options: -Wmissing-export-lists |
| 36 | + -Wpartial-fields |
| 37 | + |
| 38 | + default-language: Haskell2010 |
| 39 | + |
| 40 | +library |
| 41 | + import: common-options |
| 42 | + hs-source-dirs: src |
| 43 | + |
| 44 | + exposed-modules: System.Metrics.Acceptor |
| 45 | + System.Metrics.Configuration |
| 46 | + System.Metrics.Forwarder |
| 47 | + System.Metrics.ReqResp |
| 48 | + |
| 49 | + System.Metrics.Network.Acceptor |
| 50 | + System.Metrics.Network.Forwarder |
| 51 | + |
| 52 | + System.Metrics.Store.Acceptor |
| 53 | + System.Metrics.Store.Forwarder |
| 54 | + |
| 55 | + System.Metrics.Protocol.Type |
| 56 | + System.Metrics.Protocol.Codec |
| 57 | + System.Metrics.Protocol.Acceptor |
| 58 | + System.Metrics.Protocol.Forwarder |
| 59 | + |
| 60 | + other-modules: System.Metrics.Store.Deltify |
| 61 | + |
| 62 | + build-depends: async |
| 63 | + , bytestring |
| 64 | + , cborg |
| 65 | + , contra-tracer |
| 66 | + , ekg-core |
| 67 | + , io-classes >= 1.4.1 |
| 68 | + , network |
| 69 | + , network-mux |
| 70 | + , ouroboros-network-api |
| 71 | + , ouroboros-network-framework >= 0.17 && < 0.19 |
| 72 | + , singletons ^>= 3.0 |
| 73 | + , serialise |
| 74 | + , stm |
| 75 | + , text |
| 76 | + , time |
| 77 | + , typed-protocols ^>= 0.3 |
| 78 | + , typed-protocols-cborg |
| 79 | + , unordered-containers |
| 80 | + |
| 81 | +executable demo-forwarder |
| 82 | + hs-source-dirs: demo |
| 83 | + main-is: forwarder.hs |
| 84 | + build-depends: base |
| 85 | + , contra-tracer |
| 86 | + , ekg-core |
| 87 | + , ekg-forward |
| 88 | + , text |
| 89 | + , time |
| 90 | + |
| 91 | + default-language: Haskell2010 |
| 92 | + ghc-options: -Wall |
| 93 | + -threaded |
| 94 | + -rtsopts |
| 95 | + -with-rtsopts=-T |
| 96 | + |
| 97 | +executable demo-acceptor |
| 98 | + hs-source-dirs: demo |
| 99 | + main-is: acceptor.hs |
| 100 | + build-depends: base |
| 101 | + , contra-tracer |
| 102 | + , ekg-core |
| 103 | + , ekg-forward |
| 104 | + , stm |
| 105 | + , text |
| 106 | + , time |
| 107 | + |
| 108 | + default-language: Haskell2010 |
| 109 | + ghc-options: -Wall |
| 110 | + -threaded |
| 111 | + -rtsopts |
| 112 | + -with-rtsopts=-T |
| 113 | + |
| 114 | +test-suite ekg-forward-test |
| 115 | + import: common-options |
| 116 | + type: exitcode-stdio-1.0 |
| 117 | + hs-source-dirs: test |
| 118 | + main-is: Spec.hs |
| 119 | + other-modules: Test.GetAllMetrics |
| 120 | + Test.GetMetrics |
| 121 | + Test.GetUpdatedMetrics |
| 122 | + Test.MkConfig |
| 123 | + build-depends: base |
| 124 | + , contra-tracer |
| 125 | + , ekg-core |
| 126 | + , ekg-forward |
| 127 | + , hspec |
| 128 | + , stm |
| 129 | + , time |
| 130 | + , unordered-containers |
| 131 | + ghc-options: -threaded |
| 132 | + -rtsopts |
| 133 | + -with-rtsopts=-N |
| 134 | + default-extensions: OverloadedStrings |
0 commit comments