ppad-base64.cabal (2389B)
1 cabal-version: 3.0 2 name: ppad-base64 3 version: 0.1.1 4 synopsis: Fast base64 encoding and decoding on bytestrings. 5 license: MIT 6 license-file: LICENSE 7 author: Jared Tobin 8 maintainer: jared@ppad.tech 9 category: Cryptography 10 build-type: Simple 11 tested-with: GHC == { 9.10.3 } 12 extra-doc-files: CHANGELOG 13 description: 14 Fast base64 encoding and decoding on strict bytestrings. 15 16 flag llvm 17 description: Use GHC's LLVM backend. 18 default: False 19 manual: True 20 21 flag sanitize 22 description: Build with AddressSanitizer and UndefinedBehaviorSanitizer. 23 default: False 24 manual: True 25 26 source-repository head 27 type: git 28 location: git.ppad.tech/base64.git 29 30 library 31 default-language: Haskell2010 32 hs-source-dirs: lib 33 ghc-options: 34 -Wall 35 if flag(llvm) 36 ghc-options: -fllvm -O2 37 exposed-modules: 38 Data.ByteString.Base64 39 Data.ByteString.Base64.Pure 40 other-modules: 41 Data.ByteString.Base64.Arm 42 build-depends: 43 base >= 4.9 && < 5 44 , bytestring >= 0.9 && < 0.13 45 c-sources: 46 cbits/base64_arm.c 47 if arch(aarch64) 48 cc-options: -march=armv8-a 49 if flag(sanitize) 50 cc-options: -fsanitize=address,undefined -fno-omit-frame-pointer 51 ghc-options: -optl=-fsanitize=address,undefined 52 53 test-suite base64-tests 54 type: exitcode-stdio-1.0 55 default-language: Haskell2010 56 hs-source-dirs: test 57 main-is: Main.hs 58 59 ghc-options: 60 -rtsopts -Wall -O2 61 if flag(sanitize) 62 ghc-options: -optl=-fsanitize=address,undefined 63 64 build-depends: 65 base 66 , base64-bytestring 67 , bytestring 68 , ppad-base64 69 , tasty 70 , tasty-hunit 71 , tasty-quickcheck 72 73 benchmark base64-bench 74 type: exitcode-stdio-1.0 75 default-language: Haskell2010 76 hs-source-dirs: bench 77 main-is: Main.hs 78 79 ghc-options: 80 -rtsopts -O2 -Wall 81 82 build-depends: 83 base 84 , base64 85 , base64-bytestring 86 , bytestring 87 , criterion 88 , ppad-base64 89 90 benchmark base64-weigh 91 type: exitcode-stdio-1.0 92 default-language: Haskell2010 93 hs-source-dirs: bench 94 main-is: Weight.hs 95 96 ghc-options: 97 -rtsopts -O2 -Wall 98 99 build-depends: 100 base 101 , base64 102 , base64-bytestring 103 , bytestring 104 , ppad-base64 105 , weigh