-
Notifications
You must be signed in to change notification settings - Fork 0
/
cryptography-blake3-bindings.cabal
75 lines (64 loc) · 2.1 KB
/
cryptography-blake3-bindings.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
cabal-version: 3.0
name: cryptography-blake3-bindings
version: 1.0
category: Cryptography
synopsis: FFI bindings to BLAKE3
description:
Low-level bindings to the BLAKE3 C implementation. The C
C code is embedded, which means you don't have to worry
about external libraries, linking, or any of that stuff. We
also transparently support SIMD acceleration on platforms
which have it available.
homepage:
https://github.com/haskell-cryptography/cryptography-blake3-bindings
bug-reports:
https://github.com/haskell-cryptography/cryptography-blake3-bindings/issues
author: Koz Ross
maintainer: Koz Ross
license: BSD-3-Clause
build-type: Simple
tested-with: GHC ==8.10.7 || ==9.0.1 || ==9.2.1
extra-source-files:
CHANGELOG.md
include/blake3.h
include/blake3_impl.h
include/sizes.h
LICENSE
README.md
source-repository head
type: git
location:
https://github.com/haskell-cryptography/cryptography-blake3-bindings
common common
build-depends: base >=4.14 && <5
ghc-options:
-Wall -Wcompat -Widentities -Wincomplete-record-updates
-Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints
-Wmissing-export-lists -fhide-source-paths -Wno-unused-do-bind
-fwrite-ide-info -hiedir=.hie -haddock
default-language: Haskell2010
library
import: common
include-dirs: include
cc-options: -O3
c-sources:
cbits/blake3.c
cbits/blake3_dispatch.c
cbits/blake3_portable.c
if (os(windows) && arch(x86_64))
c-sources:
cbits/blake3_avx2_x86-64_windows_gnu.S
cbits/blake3_avx512_x86-64_windows_gnu.S
cbits/blake3_sse2_x86-64_windows_gnu.S
cbits/blake3_sse41_x86-64_windows_gnu.S
elif arch(x86_64)
c-sources:
cbits/blake3_avx2_x86-64_unix.S
cbits/blake3_avx512_x86-64_unix.S
cbits/blake3_sse2_x86-64_unix.S
cbits/blake3_sse41_x86-64_unix.S
elif arch(aarch64)
c-sources: cbits/blake3_neon.c
cc-options: -DBLAKE3_USE_NEON=1
exposed-modules: Cryptography.BLAKE3.Bindings
hs-source-dirs: src