Skip to content

Commit 09185bc

Browse files
committed
Extract LSM-trees code into sublibrary of ouroboros-consensus
1 parent 5c5b3e1 commit 09185bc

File tree

7 files changed

+664
-227
lines changed

7 files changed

+664
-227
lines changed

ouroboros-consensus/ouroboros-consensus.cabal

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,9 @@ library
258258
Ouroboros.Consensus.Storage.LedgerDB.V1.Lock
259259
Ouroboros.Consensus.Storage.LedgerDB.V1.Snapshots
260260
Ouroboros.Consensus.Storage.LedgerDB.V2
261-
Ouroboros.Consensus.Storage.LedgerDB.V2.Args
261+
Ouroboros.Consensus.Storage.LedgerDB.V2.Backend
262262
Ouroboros.Consensus.Storage.LedgerDB.V2.Forker
263263
Ouroboros.Consensus.Storage.LedgerDB.V2.InMemory
264-
Ouroboros.Consensus.Storage.LedgerDB.V2.LSM
265264
Ouroboros.Consensus.Storage.LedgerDB.V2.LedgerSeq
266265
Ouroboros.Consensus.Storage.Serialisation
267266
Ouroboros.Consensus.Storage.VolatileDB
@@ -311,7 +310,6 @@ library
311310
base16-bytestring,
312311
bimap >=0.4 && <0.6,
313312
binary >=0.8 && <0.11,
314-
blockio,
315313
bytestring >=0.10 && <0.13,
316314
cardano-binary,
317315
cardano-crypto-class,
@@ -332,7 +330,6 @@ library
332330
fs-api ^>=0.4,
333331
hashable,
334332
io-classes:{io-classes, si-timers, strict-mvar, strict-stm} ^>=1.8.0.1,
335-
lsm-tree,
336333
measures,
337334
mempack,
338335
monoid-subclasses,
@@ -374,6 +371,37 @@ library
374371
directory
375372
latex-svg-image
376373

374+
library ouroboros-consensus-lsm
375+
import: common-lib
376+
visibility: public
377+
hs-source-dirs: src/ouroboros-consensus-lsm
378+
exposed-modules:
379+
Ouroboros.Consensus.Storage.LedgerDB.V2.LSM
380+
381+
build-depends:
382+
base >=4.14 && <4.22,
383+
blockio,
384+
cardano-binary,
385+
containers >=0.5 && <0.8,
386+
contra-tracer,
387+
filepath,
388+
fs-api ^>=0.4,
389+
lsm-tree,
390+
mempack,
391+
mtl,
392+
nothunks ^>=0.2,
393+
ouroboros-consensus,
394+
primitive,
395+
random,
396+
resource-registry ^>=0.1,
397+
serialise ^>=0.2,
398+
streaming,
399+
text,
400+
transformers,
401+
vector ^>=0.13,
402+
403+
build-depends: text >=1.2.5.0 && <2.2
404+
377405
library unstable-consensus-testlib
378406
import: common-lib
379407
visibility: public

0 commit comments

Comments
 (0)