-
Notifications
You must be signed in to change notification settings - Fork 5
/
grpc-mqtt.cabal
202 lines (183 loc) · 5.91 KB
/
grpc-mqtt.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
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
cabal-version: 3.0
name: grpc-mqtt
description: A library for making gRPC requests over an MQTT connection
version: 1.0.0
synopsis: Run gRPC services over an MQTT connection
license: Apache-2.0
author: Arista Networks
maintainer: [email protected]
copyright: 2021-2022 Arista Networks
category: Network
build-type: Custom
extra-source-files:
README.md
tested-with:
GHC == 8.10.4
custom-setup
setup-depends: base, Cabal, filepath
common common
default-language: Haskell2010
ghc-options:
-Wall
-Wcompat
-Werror
-Widentities
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wmissing-fields
-Wmissing-home-modules
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages
-Wno-unused-top-binds
-fshow-warning-groups
default-extensions:
BangPatterns BlockArguments DataKinds DefaultSignatures DeriveDataTypeable
DeriveFoldable DeriveFunctor DeriveGeneric DeriveLift DeriveTraversable
DerivingStrategies DerivingVia FlexibleContexts FlexibleInstances
FunctionalDependencies GADTs ImportQualifiedPost InstanceSigs KindSignatures
LambdaCase MultiParamTypeClasses NamedFieldPuns NoImplicitPrelude
NumericUnderscores OverloadedStrings PatternSynonyms RankNTypes
ScopedTypeVariables StandaloneDeriving TupleSections TypeApplications
TypeFamilies TypeOperators
build-depends:
, async >= 2.2.3 && < 2.3
, base >= 4.14 && < 4.18
, bytestring >= 0.10.6.0 && < 0.12.0
, containers >= 0.5 && < 0.7
, deepseq == 1.4.*
, grpc-haskell >= 0.3.0 && < 0.4
, grpc-haskell-core >= 0.5.0 && < 0.6
, mtl >= 2.2.2 && < 2.3
, net-mqtt >= 0.8.3 && < 0.9
, proto3-suite >= 0.5.2 && < 0.9
, proto3-wire >= 1.2.2 && < 1.5
, relude >= 0.7.0 && < 1.3
, stm >= 2.5.0 && < 2.6
, text >= 0.2 && < 2.2
, time >= 1.9.3 && < 1.13
, turtle >= 1.6.1 && < 1.7.0
, vector >= 0.11 && < 0.14
library
import: common
ghc-options:
-O2
-fregs-iterative
hs-source-dirs:
src
exposed-modules:
Control.Concurrent.TOrderedQueue
Network.GRPC.HighLevel.Extra
Network.GRPC.MQTT
Network.GRPC.MQTT.Client
Network.GRPC.MQTT.Compress
Network.GRPC.MQTT.Core
Network.GRPC.MQTT.Logging
Network.GRPC.MQTT.Message
Network.GRPC.MQTT.Message.AuxControl
Network.GRPC.MQTT.Message.Packet
Network.GRPC.MQTT.Message.Request
Network.GRPC.MQTT.Message.Response
Network.GRPC.MQTT.Message.Stream
Network.GRPC.MQTT.Message.TH
Network.GRPC.MQTT.Option
Network.GRPC.MQTT.Option.Batched
Network.GRPC.MQTT.Option.CLevel
Network.GRPC.MQTT.Proto
Network.GRPC.MQTT.Proto.TH
Network.GRPC.MQTT.RemoteClient
Network.GRPC.MQTT.RemoteClient.Session
Network.GRPC.MQTT.Serial
Network.GRPC.MQTT.TH.Client
Network.GRPC.MQTT.TH.Proto
Network.GRPC.MQTT.TH.RemoteClient
Network.GRPC.MQTT.Topic
Network.GRPC.MQTT.Types
Network.GRPC.MQTT.Wrapping
other-modules:
Control.Concurrent.TMap
Network.GRPC.HighLevel.Orphans
Network.GRPC.MQTT.Message.Request.Core
Proto.Mqtt
Proto3.Suite.DotProto.Internal.Compat
Proto3.Wire.Decode.Extra
Proto3.Wire.Encode.Extra
Proto3.Wire.Types.Extra
Proto3.Wire.Types.Extra.TH
-- Oddly, adding this build-tool-depends can cause us to select the
-- wrong version of the proto3-suite library when building sources.
-- Cabal seems to just look up the latest, rather than using
-- the one provided by the nix-shell environment.
--
-- build-tool-depends:
-- proto3-suite:compile-proto-file
build-depends:
, conduit-extra >= 1.3.5 && < 1.4
, crypton-connection >= 0.3.1 && < 0.5
, network-conduit-tls >= 1.3.2 && < 1.5
, nonce >= 1.0.7 && < 1.1
, pqueue >= 1.4.1.3 && < 1.6
, safe-exceptions >= 0.1.7 && < 0.2
, template-haskell >= 2.16.0 && < 2.20
, unliftio >= 0.2.15 && < 0.3
, unliftio-core >= 0.2.0 && < 0.3
, unordered-containers >= 0.2.13 && < 0.3
, zstd >= 0.1.2 && < 0.2
-- cabal v2-test +RTS -N4 -I2 -qb -qg -RTS
test-suite test
import: common
type: exitcode-stdio-1.0
main-is: Test.hs
hs-source-dirs:
test
ghc-options:
-O2
-threaded
-rtsopts
"-with-rtsopts=-N1"
-fregs-iterative
other-modules:
Proto.Message
Proto.Service
Test.Network.GRPC.HighLevel.Extra
Test.Network.GRPC.HighLevel.Extra.Gen
Test.Network.GRPC.MQTT
Test.Network.GRPC.MQTT.Compress
Test.Network.GRPC.MQTT.Compress.Gen
Test.Network.GRPC.MQTT.Message
Test.Network.GRPC.MQTT.Message.Gen
Test.Network.GRPC.MQTT.Message.Packet
Test.Network.GRPC.MQTT.Message.Request
Test.Network.GRPC.MQTT.Message.Stream
Test.Network.GRPC.MQTT.Message.Utils
Test.Network.GRPC.MQTT.Option
Test.Network.GRPC.MQTT.Option.CLevel
Test.Network.GRPC.MQTT.Option.Gen
Test.Network.GRPC.MQTT.Serial
Test.Network.GRPC.MQTT.TOrderedQueue
Test.Proto.Clients
Test.Proto.RemoteClients
Test.Proto.Service
Test.Service
Test.Suite.Config
Test.Suite.Fixture
Test.Suite.Wire
-- Oddly, adding this build-tool-depends can cause us to select the
-- wrong version of the proto3-suite library when building sources.
-- Cabal seems to just look up the latest, rather than using
-- the one provided by the nix-shell environment.
--
-- build-tool-depends:
-- proto3-suite:compile-proto-file
build-depends:
, crypton-connection
, crypton-x509-store
, containers
, data-default
, grpc-mqtt
, hedgehog
, tasty
, tasty-hedgehog < 1.5.0.0
, tasty-hunit
, tls
, uuid