mssmt-0.1.0: mssmt.cabal
cabal-version: 3.0
name: mssmt
version: 0.1.0
synopsis: A high-performance in-memory Merkle-Sum Sparse Merkle Tree.
license: MIT
license-file: LICENSE
author: Jared Tobin
maintainer: jared@jtobin.io
category: Data Structures
build-type: Simple
tested-with: GHC == 9.10.3
extra-doc-files: CHANGELOG
extra-source-files:
etc/mssmt_tree_deletion.json
, etc/mssmt_tree_error_cases.json
, etc/mssmt_tree_proofs.json
, etc/mssmt_tree_replacement.json
description:
A high-performance, in-memory Merkle-Sum Sparse Merkle tree (MS-SMT),
whose branches commit to their children either individually
("Data.MSSMT.Split"), or in aggregate ("Data.MSSMT.Aggregate").
flag llvm
description: Use GHC's LLVM backend.
default: False
manual: True
library
default-language: Haskell2010
hs-source-dirs: lib
ghc-options:
-Wall
if flag(llvm)
ghc-options: -fllvm -O2
exposed-modules:
Data.MSSMT
, Data.MSSMT.Aggregate
, Data.MSSMT.Hash
, Data.MSSMT.Internal
, Data.MSSMT.Split
build-depends:
base >= 4.11 && < 5
, bytestring >= 0.10.2 && < 0.13
, ppad-sha256 >= 0.3.6 && < 0.4
, primitive >= 0.7 && < 0.10
test-suite mssmt-tests
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: test
main-is: Main.hs
other-modules:
Reference
, Vectors
ghc-options:
-rtsopts -Wall -O2
build-depends:
aeson
, base
, bytestring
, containers
, mssmt
, ppad-base16
, ppad-sha256
, tasty
, tasty-hunit
, tasty-quickcheck
benchmark mssmt-bench
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: bench
main-is: Main.hs
other-modules:
Fixtures
ghc-options:
-rtsopts -O2 -Wall
if flag(llvm)
ghc-options: -fllvm
build-depends:
base
, bytestring
, criterion
, deepseq
, mssmt
, ppad-sha256
benchmark mssmt-weigh
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: bench
main-is: Weight.hs
other-modules:
Fixtures
ghc-options:
-rtsopts -O2 -Wall
if flag(llvm)
ghc-options: -fllvm
build-depends:
base
, bytestring
, deepseq
, mssmt
, ppad-sha256
, weigh
benchmark mssmt-alloc
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: bench
main-is: Alloc.hs
other-modules:
Fixtures
ghc-options:
-rtsopts -O2 -Wall "-with-rtsopts=-T"
if flag(llvm)
ghc-options: -fllvm
build-depends:
base
, bytestring
, deepseq
, mssmt
, ppad-sha256