-
Notifications
You must be signed in to change notification settings - Fork 3
/
foreign-rust.cabal
135 lines (130 loc) · 2.88 KB
/
foreign-rust.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
cabal-version: 3.0
name: foreign-rust
version: 0.1.0
license: BSD-3-Clause
license-file: LICENSE
author: Edsko de Vries
maintainer: edsko@well-typed.com
category: Development
build-type: Simple
extra-doc-files: CHANGELOG.md
tested-with: GHC==8.6.5
, GHC==8.8.4
, GHC==8.10.7
, GHC==9.0.2
, GHC==9.2.7
, GHC==9.4.4
common lang
build-depends:
base >= 4.12
default-language:
Haskell2010
ghc-options:
-Wall
-Wredundant-constraints
if impl(ghc >= 8.10)
ghc-options:
-Wunused-packages
default-extensions:
DataKinds
DefaultSignatures
DeriveAnyClass
DeriveGeneric
DerivingStrategies
DerivingVia
FlexibleContexts
FlexibleInstances
GADTs
GeneralizedNewtypeDeriving
LambdaCase
MultiParamTypeClasses
PolyKinds
RankNTypes
ScopedTypeVariables
StandaloneDeriving
TupleSections
TypeApplications
TypeFamilies
TypeOperators
UndecidableInstances
ViewPatterns
library
import:
lang
exposed-modules:
Foreign.Rust.External.JSON
Foreign.Rust.External.Bincode
Foreign.Rust.Failure
Foreign.Rust.Marshall.External
Foreign.Rust.Marshall.Fixed
Foreign.Rust.Marshall.Variable
Foreign.Rust.SafeConv
Foreign.Rust.Serialisation.JSON
Foreign.Rust.Serialisation.Raw
Foreign.Rust.Serialisation.Raw.Base16
Foreign.Rust.Serialisation.Raw.Base58
Foreign.Rust.Serialisation.Raw.Base64
Foreign.Rust.Serialisation.Raw.Decimal
Data.Annotated
Data.Structured
Data.Structured.TH
other-modules:
Foreign.Rust.Marshall.Util
hs-source-dirs:
src
build-depends:
, aeson
, base16-bytestring
, base58-bytestring
, base64-bytestring
, binary
, borsh >= 0.3
, bytestring
, containers
, data-default
, generics-sop
, OneTuple
, sop-core
, template-haskell
, text
, th-abstraction
, vector
, wide-word
c-sources:
cbits/wrap-rust-haskell-ffi.c
test-suite test-foreign-rust
import:
lang
type:
exitcode-stdio-1.0
main-is:
Main.hs
other-modules:
Test.Serialisation.JSON
Test.Serialisation.Raw.Base16
Test.Serialisation.Raw.Base58
Test.Serialisation.Raw.Base64
Test.Serialisation.Raw.Decimal
Test.Serialisation.Types
Test.Util.TH
hs-source-dirs:
test
build-depends:
, aeson
, foreign-rust
, haskell-src-exts
, tasty
, tasty-hunit
, template-haskell
test-suite demo-annotated
import:
lang
type:
exitcode-stdio-1.0
main-is:
Main.hs
hs-source-dirs:
demo-annotated
build-depends:
, generics-sop
, foreign-rust