-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise ekg-forward for ou-net-framework 0.10 (#566)
- Loading branch information
Showing
2 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
cabal-version: 2.4 | ||
name: ekg-forward | ||
version: 0.4 | ||
synopsis: See README for more info | ||
description: See README for more info | ||
homepage: https://github.com/input-output-hk/ekg-forward | ||
bug-reports: https://github.com/input-output-hk/ekg-forward/issues | ||
license: Apache-2.0 | ||
license-file: LICENSE | ||
copyright: 2021 Input Output (Hong Kong) Ltd. | ||
author: Denis Shevchenko | ||
maintainer: Denis Shevchenko <[email protected]> | ||
category: System, Network | ||
build-type: Simple | ||
extra-doc-files: README.md | ||
CHANGELOG.md | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/input-output-hk/ekg-forward.git | ||
|
||
common common-options | ||
build-depends: base >=4.12 && <5 | ||
|
||
ghc-options: -Wall | ||
-Wcompat | ||
-Widentities | ||
-Wincomplete-uni-patterns | ||
-Wincomplete-record-updates | ||
if impl(ghc >= 8.0) | ||
ghc-options: -Wredundant-constraints | ||
if impl(ghc >= 8.2) | ||
ghc-options: -fhide-source-paths | ||
if impl(ghc >= 8.4) | ||
ghc-options: -Wmissing-export-lists | ||
-Wpartial-fields | ||
|
||
default-language: Haskell2010 | ||
|
||
library | ||
import: common-options | ||
hs-source-dirs: src | ||
|
||
exposed-modules: System.Metrics.Acceptor | ||
System.Metrics.Configuration | ||
System.Metrics.Forwarder | ||
System.Metrics.ReqResp | ||
|
||
System.Metrics.Network.Acceptor | ||
System.Metrics.Network.Forwarder | ||
|
||
System.Metrics.Store.Acceptor | ||
System.Metrics.Store.Forwarder | ||
|
||
System.Metrics.Protocol.Type | ||
System.Metrics.Protocol.Codec | ||
System.Metrics.Protocol.Acceptor | ||
System.Metrics.Protocol.Forwarder | ||
|
||
build-depends: async | ||
, bytestring | ||
, cborg | ||
, contra-tracer | ||
, ekg-core | ||
, io-classes >= 0.3 | ||
, network | ||
, ouroboros-network-api | ||
, ouroboros-network-framework >= 0.8 && < 0.11 | ||
, serialise | ||
, stm | ||
, text | ||
, time | ||
, typed-protocols ^>= 0.1 | ||
, typed-protocols-cborg | ||
, unordered-containers | ||
|
||
executable demo-forwarder | ||
hs-source-dirs: demo | ||
main-is: forwarder.hs | ||
build-depends: base | ||
, contra-tracer | ||
, ekg-core | ||
, ekg-forward | ||
, text | ||
, time | ||
|
||
default-language: Haskell2010 | ||
ghc-options: -Wall | ||
-threaded | ||
-rtsopts | ||
-with-rtsopts=-T | ||
|
||
executable demo-acceptor | ||
hs-source-dirs: demo | ||
main-is: acceptor.hs | ||
build-depends: base | ||
, contra-tracer | ||
, ekg-core | ||
, ekg-forward | ||
, stm | ||
, text | ||
, time | ||
|
||
default-language: Haskell2010 | ||
ghc-options: -Wall | ||
-threaded | ||
-rtsopts | ||
-with-rtsopts=-T | ||
|
||
test-suite ekg-forward-test | ||
import: common-options | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test | ||
main-is: Spec.hs | ||
other-modules: Test.GetAllMetrics | ||
Test.GetMetrics | ||
Test.MkConfig | ||
build-depends: base | ||
, contra-tracer | ||
, ekg-core | ||
, ekg-forward | ||
, hspec | ||
, stm | ||
, time | ||
, unordered-containers | ||
ghc-options: -threaded | ||
-rtsopts | ||
-with-rtsopts=-N | ||
default-extensions: OverloadedStrings |