|
| 1 | +cabal-version: 3.0 |
| 2 | + |
| 3 | +name: cardano-node |
| 4 | +version: 9.0.0 |
| 5 | +synopsis: The cardano full node |
| 6 | +description: The cardano full node. |
| 7 | +category: Cardano, |
| 8 | + Validator, |
| 9 | +copyright: 2019-2023 Input Output Global Inc (IOG), 2023-2024 Intersect. |
| 10 | +author: IOHK |
| 11 | + |
| 12 | +license: Apache-2.0 |
| 13 | +license-files: LICENSE |
| 14 | + NOTICE |
| 15 | +build-type: Simple |
| 16 | +extra-doc-files: ChangeLog.md |
| 17 | + |
| 18 | +Flag unexpected_thunks |
| 19 | + Description: Turn on unexpected thunks checks |
| 20 | + Default: False |
| 21 | + |
| 22 | +flag systemd |
| 23 | + description: Enable systemd support |
| 24 | + default: True |
| 25 | + manual: False |
| 26 | + |
| 27 | +common project-config |
| 28 | + default-language: Haskell2010 |
| 29 | + |
| 30 | + default-extensions: OverloadedStrings |
| 31 | + build-depends: base >= 4.14 && < 5 |
| 32 | + |
| 33 | + ghc-options: -Wall |
| 34 | + -Wcompat |
| 35 | + -Wincomplete-record-updates |
| 36 | + -Wincomplete-uni-patterns |
| 37 | + -Wno-unticked-promoted-constructors |
| 38 | + -Wpartial-fields |
| 39 | + -Wredundant-constraints |
| 40 | + -Wunused-packages |
| 41 | +common maybe-Win32 |
| 42 | + if os(windows) |
| 43 | + build-depends: Win32 |
| 44 | + |
| 45 | +common maybe-unix |
| 46 | + if !os(windows) |
| 47 | + build-depends: unix |
| 48 | + |
| 49 | +common text |
| 50 | + if impl(ghc == 8.10.7) && os(darwin) && arch(aarch64) |
| 51 | + build-depends: text >= 1.2.5.0 |
| 52 | + else |
| 53 | + build-depends: text >= 2.0 |
| 54 | + |
| 55 | +library |
| 56 | + import: project-config |
| 57 | + , maybe-unix |
| 58 | + , maybe-Win32 |
| 59 | + , text |
| 60 | + if flag(unexpected_thunks) |
| 61 | + cpp-options: -DUNEXPECTED_THUNKS |
| 62 | + |
| 63 | + if os(linux) && flag(systemd) |
| 64 | + cpp-options: -DSYSTEMD |
| 65 | + build-depends: lobemo-scribe-systemd |
| 66 | + , systemd >= 2.3.0 |
| 67 | + |
| 68 | + hs-source-dirs: src |
| 69 | + |
| 70 | + exposed-modules: Cardano.Node.Configuration.Logging |
| 71 | + Cardano.Node.Configuration.NodeAddress |
| 72 | + Cardano.Node.Configuration.POM |
| 73 | + Cardano.Node.Configuration.Socket |
| 74 | + Cardano.Node.Configuration.Topology |
| 75 | + Cardano.Node.Configuration.TopologyP2P |
| 76 | + Cardano.Node.Handlers.Shutdown |
| 77 | + Cardano.Node.Handlers.TopLevel |
| 78 | + Cardano.Node.Orphans |
| 79 | + Cardano.Node.Parsers |
| 80 | + Cardano.Node.Pretty |
| 81 | + Cardano.Node.Protocol |
| 82 | + Cardano.Node.Protocol.Alonzo |
| 83 | + Cardano.Node.Protocol.Byron |
| 84 | + Cardano.Node.Protocol.Cardano |
| 85 | + Cardano.Node.Protocol.Conway |
| 86 | + Cardano.Node.Protocol.Shelley |
| 87 | + Cardano.Node.Protocol.Types |
| 88 | + Cardano.Node.Queries |
| 89 | + Cardano.Node.Run |
| 90 | + Cardano.Node.Startup |
| 91 | + Cardano.Node.STM |
| 92 | + Cardano.Node.TraceConstraints |
| 93 | + Cardano.Node.Tracing |
| 94 | + Cardano.Node.Tracing.API |
| 95 | + Cardano.Node.Tracing.Consistency |
| 96 | + Cardano.Node.Tracing.Compat |
| 97 | + Cardano.Node.Tracing.DefaultTraceConfig |
| 98 | + Cardano.Node.Tracing.Documentation |
| 99 | + Cardano.Node.Tracing.Era.Byron |
| 100 | + Cardano.Node.Tracing.Era.HardFork |
| 101 | + Cardano.Node.Tracing.Era.Shelley |
| 102 | + Cardano.Node.Tracing.Formatting |
| 103 | + Cardano.Node.Tracing.Peers |
| 104 | + Cardano.Node.Tracing.Render |
| 105 | + Cardano.Node.Tracing.StateRep |
| 106 | + Cardano.Node.Tracing.Tracers |
| 107 | + Cardano.Node.Tracing.Tracers.BlockReplayProgress |
| 108 | + Cardano.Node.Tracing.Tracers.ChainDB |
| 109 | + Cardano.Node.Tracing.Tracers.Consensus |
| 110 | + Cardano.Node.Tracing.Tracers.ConsensusStartupException |
| 111 | + Cardano.Node.Tracing.Tracers.Diffusion |
| 112 | + Cardano.Node.Tracing.Tracers.ForgingThreadStats |
| 113 | + Cardano.Node.Tracing.Tracers.KESInfo |
| 114 | + Cardano.Node.Tracing.Tracers.NodeToClient |
| 115 | + Cardano.Node.Tracing.Tracers.NodeToNode |
| 116 | + Cardano.Node.Tracing.Tracers.NodeVersion |
| 117 | + Cardano.Node.Tracing.Tracers.NonP2P |
| 118 | + Cardano.Node.Tracing.Tracers.P2P |
| 119 | + Cardano.Node.Tracing.Tracers.Peer |
| 120 | + Cardano.Node.Tracing.Tracers.Resources |
| 121 | + Cardano.Node.Tracing.Tracers.Shutdown |
| 122 | + Cardano.Node.Tracing.Tracers.StartLeadershipCheck |
| 123 | + Cardano.Node.Tracing.Tracers.Startup |
| 124 | + Cardano.Node.Types |
| 125 | + Cardano.Tracing.Config |
| 126 | + Cardano.Tracing.HasIssuer |
| 127 | + Cardano.Tracing.Metrics |
| 128 | + Cardano.Tracing.OrphanInstances.Byron |
| 129 | + Cardano.Tracing.OrphanInstances.Common |
| 130 | + Cardano.Tracing.OrphanInstances.Consensus |
| 131 | + Cardano.Tracing.OrphanInstances.HardFork |
| 132 | + Cardano.Tracing.OrphanInstances.Network |
| 133 | + Cardano.Tracing.OrphanInstances.Shelley |
| 134 | + Cardano.Tracing.Peer |
| 135 | + Cardano.Tracing.Render |
| 136 | + Cardano.Tracing.Shutdown |
| 137 | + Cardano.Tracing.Startup |
| 138 | + Cardano.Tracing.Tracers |
| 139 | + |
| 140 | + other-modules: Paths_cardano_node |
| 141 | + autogen-modules: Paths_cardano_node |
| 142 | + |
| 143 | + build-depends: base |
| 144 | + , aeson >= 2.1.0.0 |
| 145 | + , async |
| 146 | + , base16-bytestring |
| 147 | + , bytestring |
| 148 | + , cardano-api ^>= 9.0 |
| 149 | + , cardano-crypto-class |
| 150 | + , cardano-crypto-wrapper |
| 151 | + , cardano-git-rev ^>=0.2.2 |
| 152 | + , cardano-ledger-alonzo |
| 153 | + , cardano-ledger-allegra |
| 154 | + , cardano-ledger-api |
| 155 | + , cardano-ledger-babbage |
| 156 | + , cardano-ledger-binary |
| 157 | + , cardano-ledger-byron |
| 158 | + , cardano-ledger-conway |
| 159 | + , cardano-ledger-core |
| 160 | + , cardano-ledger-shelley |
| 161 | + , cardano-prelude |
| 162 | + , cardano-protocol-tpraos >= 1.0.2 |
| 163 | + , cardano-slotting >= 0.2 |
| 164 | + , cborg ^>= 0.2.4 |
| 165 | + , containers |
| 166 | + , contra-tracer |
| 167 | + , data-default-class |
| 168 | + , deepseq |
| 169 | + , directory |
| 170 | + , dns |
| 171 | + , ekg |
| 172 | + , ekg-core |
| 173 | + , filepath |
| 174 | + , formatting |
| 175 | + , generic-data |
| 176 | + , hostname |
| 177 | + , io-classes >= 1.4 |
| 178 | + , iohk-monitoring < 0.2 |
| 179 | + , iproute |
| 180 | + , lobemo-backend-aggregation |
| 181 | + , lobemo-backend-ekg < 0.2 |
| 182 | + , lobemo-backend-monitoring |
| 183 | + , lobemo-backend-trace-forwarder |
| 184 | + , mtl |
| 185 | + , network |
| 186 | + , network-mux >= 0.4 |
| 187 | + , nothunks |
| 188 | + , optparse-applicative-fork >= 0.18.1 |
| 189 | + , ouroboros-consensus ^>= 0.20 |
| 190 | + , ouroboros-consensus-cardano ^>= 0.18 |
| 191 | + , ouroboros-consensus-diffusion ^>= 0.17 |
| 192 | + , ouroboros-consensus-protocol |
| 193 | + , ouroboros-network-api ^>= 0.7.3 |
| 194 | + , ouroboros-network ^>= 0.16.1 |
| 195 | + , ouroboros-network-framework |
| 196 | + , ouroboros-network-protocols ^>= 0.9 |
| 197 | + , prettyprinter |
| 198 | + , prettyprinter-ansi-terminal |
| 199 | + , psqueues |
| 200 | + , safe-exceptions |
| 201 | + , scientific |
| 202 | + , si-timers |
| 203 | + , sop-core |
| 204 | + , stm |
| 205 | + , strict-sop-core |
| 206 | + , strict-stm |
| 207 | + , time |
| 208 | + , trace-dispatcher ^>= 2.5.8 |
| 209 | + , trace-forward ^>= 2.2.6 |
| 210 | + , trace-resources ^>= 0.2.2 |
| 211 | + , tracer-transformers |
| 212 | + , transformers |
| 213 | + , transformers-except |
| 214 | + , typed-protocols >= 0.1 |
| 215 | + , yaml |
| 216 | + |
| 217 | +executable cardano-node |
| 218 | + import: project-config |
| 219 | + hs-source-dirs: app |
| 220 | + main-is: cardano-node.hs |
| 221 | + ghc-options: -threaded |
| 222 | + -rtsopts |
| 223 | + |
| 224 | + if arch(arm) |
| 225 | + ghc-options: "-with-rtsopts=-T -I0 -A16m -N1 --disable-delayed-os-memory-return" |
| 226 | + else |
| 227 | + ghc-options: "-with-rtsopts=-T -I0 -A16m -N2 --disable-delayed-os-memory-return" |
| 228 | + |
| 229 | + other-modules: Paths_cardano_node |
| 230 | + autogen-modules: Paths_cardano_node |
| 231 | + |
| 232 | + build-depends: base |
| 233 | + , cardano-crypto-class |
| 234 | + , cardano-git-rev |
| 235 | + , cardano-node |
| 236 | + , optparse-applicative-fork |
| 237 | + , text |
| 238 | + |
| 239 | +test-suite cardano-node-test |
| 240 | + import: project-config |
| 241 | + , maybe-unix |
| 242 | + hs-source-dirs: test |
| 243 | + main-is: cardano-node-test.hs |
| 244 | + type: exitcode-stdio-1.0 |
| 245 | + |
| 246 | + build-depends: base |
| 247 | + , aeson |
| 248 | + , bytestring |
| 249 | + , cardano-crypto-class |
| 250 | + , cardano-crypto-wrapper |
| 251 | + , cardano-api:{cardano-api, internal} |
| 252 | + , cardano-ledger-core |
| 253 | + , cardano-node |
| 254 | + , cardano-slotting |
| 255 | + , directory |
| 256 | + , filepath |
| 257 | + , hedgehog |
| 258 | + , hedgehog-corpus |
| 259 | + , hedgehog-extras |
| 260 | + , iproute |
| 261 | + , mtl |
| 262 | + , ouroboros-consensus |
| 263 | + , ouroboros-consensus-cardano |
| 264 | + , ouroboros-consensus-diffusion |
| 265 | + , ouroboros-network |
| 266 | + , ouroboros-network-api |
| 267 | + , strict-sop-core |
| 268 | + , text |
| 269 | + , time |
| 270 | + , transformers |
| 271 | + , vector |
| 272 | + , yaml |
| 273 | + |
| 274 | + other-modules: Test.Cardano.Config.Mainnet |
| 275 | + Test.Cardano.Node.FilePermissions |
| 276 | + Test.Cardano.Node.Gen |
| 277 | + Test.Cardano.Node.Json |
| 278 | + Test.Cardano.Node.POM |
| 279 | + Test.Cardano.Tracing.NewTracing.Consistency |
| 280 | + Test.Cardano.Tracing.OrphanInstances.HardFork |
| 281 | + |
| 282 | + ghc-options: -threaded -rtsopts "-with-rtsopts=-N -T" |
0 commit comments