|
| 1 | +cabal-version: 3.0 |
| 2 | +name: cardano-ledger-binary |
| 3 | +version: 1.3.4.0 |
| 4 | +license: Apache-2.0 |
| 5 | + |
| 6 | +author: IOHK |
| 7 | +homepage: https://github.com/intersectmbo/cardano-ledger |
| 8 | +synopsis: Binary serialization library used throughout ledger |
| 9 | +category: Network |
| 10 | +build-type: Simple |
| 11 | + |
| 12 | +source-repository head |
| 13 | + type: git |
| 14 | + location: https://github.com/intersectmbo/cardano-ledger |
| 15 | + subdir: libs/cardano-ledger-binary |
| 16 | + |
| 17 | +library |
| 18 | + exposed-modules: |
| 19 | + Cardano.Ledger.Binary |
| 20 | + Cardano.Ledger.Binary.Coders |
| 21 | + Cardano.Ledger.Binary.Crypto |
| 22 | + Cardano.Ledger.Binary.Decoding |
| 23 | + Cardano.Ledger.Binary.Encoding |
| 24 | + Cardano.Ledger.Binary.FlatTerm |
| 25 | + Cardano.Ledger.Binary.Group |
| 26 | + Cardano.Ledger.Binary.Plain |
| 27 | + Cardano.Ledger.Binary.Version |
| 28 | + |
| 29 | + hs-source-dirs: src |
| 30 | + other-modules: |
| 31 | + Cardano.Ledger.Binary.Encoding.Coders |
| 32 | + Cardano.Ledger.Binary.Encoding.Encoder |
| 33 | + Cardano.Ledger.Binary.Encoding.EncCBOR |
| 34 | + Cardano.Ledger.Binary.Decoding.Annotated |
| 35 | + Cardano.Ledger.Binary.Decoding.Coders |
| 36 | + Cardano.Ledger.Binary.Decoding.Decoder |
| 37 | + Cardano.Ledger.Binary.Decoding.Drop |
| 38 | + Cardano.Ledger.Binary.Decoding.DecCBOR |
| 39 | + Cardano.Ledger.Binary.Decoding.Sharing |
| 40 | + Cardano.Ledger.Binary.Decoding.Sized |
| 41 | + |
| 42 | + default-language: Haskell2010 |
| 43 | + ghc-options: |
| 44 | + -Wall -Wcompat -Wincomplete-record-updates |
| 45 | + -Wincomplete-uni-patterns -Wredundant-constraints -Wunused-packages |
| 46 | + |
| 47 | + build-depends: |
| 48 | + base >=4.14 && <5, |
| 49 | + aeson, |
| 50 | + base16-bytestring, |
| 51 | + binary, |
| 52 | + bytestring, |
| 53 | + cardano-binary >=1.7, |
| 54 | + cardano-crypto-class ^>=2.1, |
| 55 | + cardano-crypto-praos >=2.1, |
| 56 | + cardano-slotting >=0.2, |
| 57 | + cardano-strict-containers >=0.1.2, |
| 58 | + cborg >=0.2.9, |
| 59 | + containers, |
| 60 | + data-fix, |
| 61 | + deepseq, |
| 62 | + FailT, |
| 63 | + formatting, |
| 64 | + iproute, |
| 65 | + microlens, |
| 66 | + mtl, |
| 67 | + network, |
| 68 | + nothunks, |
| 69 | + primitive, |
| 70 | + plutus-ledger-api >=1.27.0 && <1.33.0, |
| 71 | + recursion-schemes, |
| 72 | + serialise, |
| 73 | + tagged, |
| 74 | + text, |
| 75 | + time, |
| 76 | + transformers >=0.5, |
| 77 | + vector, |
| 78 | + vector-map ^>=1.1 |
| 79 | + |
| 80 | +library testlib |
| 81 | + exposed-modules: |
| 82 | + Test.Cardano.Ledger.Binary.Arbitrary |
| 83 | + Test.Cardano.Ledger.Binary.Cddl |
| 84 | + Test.Cardano.Ledger.Binary.Cuddle |
| 85 | + Test.Cardano.Ledger.Binary.Plain.Golden |
| 86 | + Test.Cardano.Ledger.Binary.Plain.RoundTrip |
| 87 | + Test.Cardano.Ledger.Binary.Random |
| 88 | + Test.Cardano.Ledger.Binary.RoundTrip |
| 89 | + Test.Cardano.Ledger.Binary.TreeDiff |
| 90 | + Test.Cardano.Ledger.Binary.Twiddle |
| 91 | + Test.Cardano.Ledger.Binary.Vintage.Helpers |
| 92 | + Test.Cardano.Ledger.Binary.Vintage.Helpers.GoldenRoundTrip |
| 93 | + |
| 94 | + visibility: public |
| 95 | + hs-source-dirs: testlib |
| 96 | + default-language: Haskell2010 |
| 97 | + ghc-options: |
| 98 | + -Wall -Wcompat -Wincomplete-record-updates |
| 99 | + -Wincomplete-uni-patterns -Wredundant-constraints -Wunused-packages |
| 100 | + |
| 101 | + build-depends: |
| 102 | + base, |
| 103 | + bytestring, |
| 104 | + base16-bytestring, |
| 105 | + cardano-binary, |
| 106 | + cardano-crypto-class, |
| 107 | + cardano-crypto-tests, |
| 108 | + cardano-ledger-binary, |
| 109 | + cardano-prelude-test, |
| 110 | + cardano-strict-containers, |
| 111 | + cardano-slotting:{cardano-slotting, testlib} >=0.1.2, |
| 112 | + cborg, |
| 113 | + containers, |
| 114 | + cuddle >=0.2.0.0 && <0.4, |
| 115 | + formatting, |
| 116 | + tree-diff, |
| 117 | + iproute, |
| 118 | + half, |
| 119 | + hedgehog, |
| 120 | + hspec, |
| 121 | + hspec-core, |
| 122 | + pretty-show, |
| 123 | + prettyprinter, |
| 124 | + primitive, |
| 125 | + QuickCheck, |
| 126 | + quickcheck-instances <0.3.32, |
| 127 | + tasty-hunit, |
| 128 | + random >=1.2, |
| 129 | + text, |
| 130 | + typed-process, |
| 131 | + unliftio, |
| 132 | + vector, |
| 133 | + vector-map |
| 134 | + |
| 135 | +test-suite tests |
| 136 | + type: exitcode-stdio-1.0 |
| 137 | + main-is: Main.hs |
| 138 | + hs-source-dirs: test |
| 139 | + other-modules: |
| 140 | + Test.Cardano.Ledger.Binary.Failure |
| 141 | + Test.Cardano.Ledger.Binary.PlainSpec |
| 142 | + Test.Cardano.Ledger.Binary.Success |
| 143 | + Test.Cardano.Ledger.Binary.RoundTripSpec |
| 144 | + Test.Cardano.Ledger.Binary.Vintage.Coders |
| 145 | + Test.Cardano.Ledger.Binary.Vintage.Drop |
| 146 | + Test.Cardano.Ledger.Binary.Vintage.Failure |
| 147 | + Test.Cardano.Ledger.Binary.Vintage.RoundTrip |
| 148 | + Test.Cardano.Ledger.Binary.Vintage.Serialization |
| 149 | + Test.Cardano.Ledger.Binary.Vintage.SizeBounds |
| 150 | + |
| 151 | + default-language: Haskell2010 |
| 152 | + ghc-options: |
| 153 | + -Wall -Wcompat -Wincomplete-record-updates |
| 154 | + -Wincomplete-uni-patterns -Wredundant-constraints -Wunused-packages |
| 155 | + -threaded -rtsopts -with-rtsopts=-N |
| 156 | + |
| 157 | + build-depends: |
| 158 | + base, |
| 159 | + bytestring, |
| 160 | + cardano-ledger-binary, |
| 161 | + cardano-crypto-class, |
| 162 | + cardano-crypto-praos, |
| 163 | + cardano-prelude-test, |
| 164 | + cardano-slotting, |
| 165 | + cardano-strict-containers, |
| 166 | + cborg, |
| 167 | + containers, |
| 168 | + hedgehog, |
| 169 | + hedgehog-quickcheck, |
| 170 | + hspec, |
| 171 | + iproute, |
| 172 | + primitive, |
| 173 | + QuickCheck, |
| 174 | + tagged, |
| 175 | + text, |
| 176 | + testlib, |
| 177 | + time, |
| 178 | + vector, |
| 179 | + vector-map |
| 180 | + |
| 181 | +benchmark bench |
| 182 | + type: exitcode-stdio-1.0 |
| 183 | + main-is: Bench.hs |
| 184 | + hs-source-dirs: bench |
| 185 | + default-language: Haskell2010 |
| 186 | + ghc-options: |
| 187 | + -Wall -Wcompat -Wincomplete-record-updates |
| 188 | + -Wincomplete-uni-patterns -Wredundant-constraints -Wunused-packages |
| 189 | + -threaded -rtsopts -O2 |
| 190 | + |
| 191 | + build-depends: |
| 192 | + base, |
| 193 | + bytestring, |
| 194 | + cardano-ledger-binary, |
| 195 | + containers, |
| 196 | + criterion, |
| 197 | + deepseq, |
| 198 | + random |
0 commit comments