Skip to content

Commit 572f16b

Browse files
committed
Extract LSM trees backend into a separate package
1 parent 5c5b3e1 commit 572f16b

File tree

15 files changed

+1004
-573
lines changed

15 files changed

+1004
-573
lines changed

cabal.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ index-state:
2020

2121
packages:
2222
ouroboros-consensus
23+
ouroboros-consensus-lsm
2324
ouroboros-consensus-cardano
2425
ouroboros-consensus-protocol
2526
ouroboros-consensus-diffusion
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
cabal-version: 3.0
2+
name: ouroboros-consensus-lsm
3+
version: 0.1.0.0
4+
synopsis: LSM LedgerDB V2 backend for ouroboros-consensus
5+
description: LSM LedgerDB V2 backend for ouroboros-consensus.
6+
license: Apache-2.0
7+
license-files:
8+
LICENSE
9+
NOTICE
10+
11+
copyright:
12+
2019-2023 Input Output Global Inc (IOG), INTERSECT 2023-2024.
13+
14+
author: IOG Engineering Team
15+
maintainer: operations@iohk.io
16+
category: Network
17+
build-type: Simple
18+
extra-doc-files:
19+
CHANGELOG.md
20+
21+
source-repository head
22+
type: git
23+
location: https://github.com/IntersectMBO/ouroboros-consensus
24+
25+
flag asserts
26+
description: Enable assertions
27+
manual: False
28+
default: False
29+
30+
common common-lib
31+
default-language: Haskell2010
32+
ghc-options:
33+
-Wall
34+
-Wcompat
35+
-Wincomplete-uni-patterns
36+
-Wincomplete-record-updates
37+
-Wpartial-fields
38+
-Widentities
39+
-Wredundant-constraints
40+
-Wmissing-export-lists
41+
-Wunused-packages
42+
-Wno-unticked-promoted-constructors
43+
44+
if flag(asserts)
45+
ghc-options: -fno-ignore-asserts
46+
cpp-options: -DENABLE_ASSERTIONS
47+
48+
common common-test
49+
import: common-lib
50+
ghc-options:
51+
-threaded
52+
-rtsopts
53+
54+
common common-bench
55+
import: common-test
56+
ghc-options:
57+
-threaded
58+
-rtsopts
59+
60+
-- We use this option to avoid skewed results due to changes in cache-line
61+
-- alignment. See
62+
-- https://github.com/Bodigrim/tasty-bench#comparison-against-baseline
63+
ghc-options: -fproc-alignment=64
64+
65+
library
66+
import: common-lib
67+
hs-source-dirs: src
68+
exposed-modules:
69+
Ouroboros.Consensus.Storage.LedgerDB.V2.LSM
70+
71+
build-depends:
72+
base >=4.14 && <4.22,
73+
blockio,
74+
cardano-binary,
75+
containers >=0.5 && <0.8,
76+
contra-tracer,
77+
fs-api ^>=0.4,
78+
ouroboros-consensus,
79+
lsm-tree,
80+
mempack,
81+
mtl,
82+
nothunks ^>=0.2,
83+
primitive,
84+
resource-registry ^>=0.1,
85+
serialise ^>=0.2,
86+
text,
87+
transformers,
88+
vector ^>=0.13,
89+
streaming,
90+
91+
build-depends: text >=1.2.5.0 && <2.2

0 commit comments

Comments
 (0)