/
cardano-node.cabal
207 lines (182 loc) · 7.3 KB
/
cardano-node.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
cabal-version: 2.4
name: cardano-node
version: 1.26.0
description: The cardano full node
author: IOHK
maintainer: operations@iohk.io
license: Apache-2.0
license-files: LICENSE
NOTICE
build-type: Simple
extra-source-files: ChangeLog.md
Flag unexpected_thunks
Description: Turn on unexpected thunks checks
Default: False
flag systemd
description: Enable systemd support
default: True
manual: False
common base { build-depends: base >= 4.14 && < 4.15 }
common project-config
default-language: Haskell2010
default-extensions: NoImplicitPrelude
OverloadedStrings
ghc-options: -Wall
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wno-unticked-promoted-constructors
-Wpartial-fields
-Wredundant-constraints
if impl(ghc >= 8.10)
ghc-options: -Wunused-packages
-- Pattern match checking has improved since 8.6.5. GHC now considers more
-- pattern matches as redundant than before, so disable this warning for older
-- versions of GHC that still consider them incomplete.
if impl(ghc < 8.10)
ghc-options: -Wno-incomplete-patterns
common maybe-Win32
if os(windows)
build-depends: Win32
common maybe-unix
if !os(windows)
build-depends: unix
library
import: base, project-config
, maybe-unix
, maybe-Win32
if flag(unexpected_thunks)
cpp-options: -DUNEXPECTED_THUNKS
if os(linux) && flag(systemd)
cpp-options: -DSYSTEMD
build-depends: lobemo-scribe-systemd
, systemd
hs-source-dirs: src
exposed-modules: Cardano.Node.Configuration.Logging
Cardano.Node.Configuration.POM
Cardano.Node.Configuration.Topology
Cardano.Node.Handlers.Shutdown
Cardano.Node.Handlers.TopLevel
Cardano.Node.Orphans
Cardano.Node.Protocol
Cardano.Node.Protocol.Byron
Cardano.Node.Protocol.Cardano
Cardano.Node.Protocol.Shelley
Cardano.Node.Protocol.Types
Cardano.Node.Query
Cardano.Node.Parsers
Cardano.Node.Run
Cardano.Node.STM
Cardano.Node.Types
Cardano.Tracing.Config
Cardano.Tracing.Constraints
Cardano.Tracing.ConvertTxId
Cardano.Tracing.Kernel
Cardano.Tracing.Metrics
Cardano.Tracing.Peer
Cardano.Tracing.Queries
Cardano.Tracing.Render
Cardano.Tracing.Tracers
Cardano.Tracing.OrphanInstances.Byron
Cardano.Tracing.OrphanInstances.Common
Cardano.Tracing.OrphanInstances.Consensus
Cardano.Tracing.OrphanInstances.HardFork
Cardano.Tracing.OrphanInstances.Network
Cardano.Tracing.OrphanInstances.Shelley
other-modules: Paths_cardano_node
Cardano.Node.Configuration.Socket
build-depends: aeson >= 1.5.6.0
, async
, base16-bytestring
, bytestring
, deepseq
, cardano-api
, cardano-config
, cardano-crypto-class
, cardano-crypto-wrapper
, cardano-ledger-byron
, cardano-ledger-shelley-ma
, cardano-prelude
, cardano-slotting
, contra-tracer
, cborg >= 0.2.4 && < 0.3
, containers
, directory
, dns
, ekg
, ekg-core
, filepath
, generic-data
, hostname
, iproute
, io-sim-classes
, iohk-monitoring
, lobemo-backend-aggregation
, lobemo-backend-ekg
, lobemo-backend-monitoring
, lobemo-backend-trace-forwarder
, network
, network-mux
, nothunks
, optparse-applicative
, ouroboros-consensus
, ouroboros-consensus-byron
, ouroboros-consensus-cardano
, ouroboros-consensus-shelley
, ouroboros-network
, ouroboros-network-framework
, process
, safe-exceptions
, scientific
, shelley-spec-ledger
, stm
, text
, time
, tracer-transformers
, transformers
, transformers-except
, unordered-containers
, yaml
executable cardano-node
import: base, project-config
hs-source-dirs: app
main-is: cardano-node.hs
ghc-options: -threaded
-rtsopts
if arch(arm)
if impl(ghc >= 8.10)
ghc-options: "-with-rtsopts=-T -I0 -A16m -N1 --disable-delayed-os-memory-return"
else
ghc-options: "-with-rtsopts=-T -I0 -A16m -N1"
else
if impl(ghc >= 8.10)
ghc-options: "-with-rtsopts=-T -I0 -A16m -N2 --disable-delayed-os-memory-return"
else
ghc-options: "-with-rtsopts=-T -I0 -A16m -N2"
other-modules: Paths_cardano_node
build-depends: cardano-config
, cardano-node
, cardano-prelude
, optparse-applicative
, text
test-suite cardano-node-test
import: base, project-config
, maybe-unix
hs-source-dirs: test
main-is: cardano-node-test.hs
type: exitcode-stdio-1.0
build-depends: aeson >= 1.5.6.0
, cardano-api
, cardano-node
, cardano-prelude
, cardano-slotting
, directory
, hedgehog
, hedgehog-corpus
, iproute
, ouroboros-network
other-modules: Test.Cardano.Node.FilePermissions
Test.Cardano.Node.Gen
Test.Cardano.Node.Json
Test.Cardano.Node.POM
ghc-options: -threaded -rtsopts -with-rtsopts=-N -with-rtsopts=-T