forked from samisagit/natskell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnatskell.cabal
More file actions
224 lines (201 loc) · 4.17 KB
/
natskell.cabal
File metadata and controls
224 lines (201 loc) · 4.17 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
cabal-version: 3.0
name: natskell
version: 0.0.0
synopsis: A NATS client library written in Haskell
-- A longer description of the package.
description: Please see the README on GitHub at <github.com/samisagit/natskell#readme>
-- homepage:
-- A URL where users can report bugs.
bug-reports: https://github.com/samisagit/natskell/issues
license: MIT
license-file: LICENSE
author: samisagit
maintainer: [email protected]
-- A copyright notice.
-- copyright:
category: Web
source-repository head
type: git
location: https://github.com/samisagit/natskell.git
common shared
default-language: Haskell2010
build-depends:
base >= 4.14 && < 5,
ghc-options:
-haddock -W -Wunused-packages
pkgconfig-depends: zlib
library
import: shared
build-depends:
natskell-internal,
-- TODO: check these are the highest possible values
bytestring >= 0.10,
containers < 0.7,
hashable < 1.5,
stm < 2.6,
text >= 1.2 && < 2.2,
network < 3.3,
bytestring >= 0.10 && < 0.13,
network-simple < 0.5,
random < 1.3,
cryptonite >= 0.30,
memory >= 0.18,
base64-bytestring >= 1.2,
base32 >= 0.4
exposed-modules:
Client
Crypto.NKey
other-modules:
Types
Sid
Options
MSGView
State
hs-source-dirs:
client
library natskell-internal
import: shared
build-depends:
conduit < 1.4,
bytestring,
aeson < 2.3,
word8 < 0.2,
stm,
mtl,
text
exposed-modules:
Lib.Parser
Lib.Logger
Lib.CallOption
Parsers.Parsers
Transformers.Transformers
Validators.Validators
Types.Msg
Types.Ping
Types.Pong
Types.Ok
Types.Err
Types.Info
Types.Pub
Types.Connect
Types.Sub
Types.Unsub
WaitGroup
Pipeline.Broadcasting.Source
Pipeline.Broadcasting.Transformer
Pipeline.Broadcasting.Sink
Pipeline.Broadcasting.API
Pipeline.Streaming.API
Pipeline.Streaming.Source
Pipeline.Streaming.Parser
Pipeline.Streaming.Sink
Network.API
Network.Connection
Queue.API
Queue.TransactionalQueue
hs-source-dirs:
internal
internal/Types
internal/Parsers
internal/Transformers
internal/Validators
internal/Lib
internal/Pipeline
internal/Pipeline/Broadcasting
internal/Pipeline/Streaming
internal/Network
internal/Queue
library test-common
import: shared
build-depends:
stm
exposed-modules:
WaitGroup
hs-source-dirs:
internal/Lib
test-suite unit-test
import: shared
type: exitcode-stdio-1.0
hs-source-dirs: test/Unit
main-is: Spec.hs
build-depends:
natskell,
natskell-internal,
hspec,
bytestring,
network,
word8,
aeson,
stm,
text
other-modules:
ParserSpec
MsgSpec
PingSpec
PongSpec
OkSpec
ErrSpec
InfoSpec
PubSpec
ConnectSpec
SubSpec
UnsubSpec
Fixtures
StreamingSpec
NKeySpec
test-suite fuzz-test
import: shared
type: exitcode-stdio-1.0
hs-source-dirs: test/Fuzz
main-is: Spec.hs
build-depends:
natskell-internal,
hspec,
bytestring,
word8,
QuickCheck
other-modules:
ParserSpec
ValidatorsSpec
flag impure
default: False
manual: True
test-suite system-test
import: shared
hs-source-dirs: test/System
build-depends:
natskell,
test-common,
bytestring,
stm,
hspec,
testcontainers,
directory,
text
other-modules:
ClientSpec
AuthSpec
if flag (impure)
type: exitcode-stdio-1.0
main-is: Main.hs
else
type: exitcode-stdio-1.0
main-is: Skip.hs
test-suite client-test
import: shared
hs-source-dirs: test/Integration
build-depends:
natskell,
test-common,
port-utils,
network,
stm,
hspec
other-modules:
ClientSpec
if flag (impure)
type: exitcode-stdio-1.0
main-is: Spec.hs
else
type: exitcode-stdio-1.0
main-is: Skip.hs