Skip to content

Commit

Permalink
Revise ekg-forward for ou-net-framework 0.10 (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo authored Nov 15, 2023
1 parent 856d8fa commit 2d46802
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _sources/ekg-forward/0.4/meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ github = { repo = "input-output-hk/ekg-forward", rev = "5f5423b1b498a8bf0d33d869
[[revisions]]
number = 1
timestamp = 2023-09-05T08:50:43Z

[[revisions]]
number = 2
timestamp = 2023-11-15T14:43:10Z
129 changes: 129 additions & 0 deletions _sources/ekg-forward/0.4/revisions/2.cabal
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

0 comments on commit 2d46802

Please sign in to comment.