summaryrefslogtreecommitdiff
path: root/erebos.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'erebos.cabal')
-rw-r--r--erebos.cabal34
1 files changed, 28 insertions, 6 deletions
diff --git a/erebos.cabal b/erebos.cabal
index ebe6a63..1937b97 100644
--- a/erebos.cabal
+++ b/erebos.cabal
@@ -1,7 +1,7 @@
Cabal-Version: 3.0
Name: erebos
-Version: 0.1.8.1
+Version: 0.2.0
Synopsis: Decentralized messaging and synchronization
Description:
Library and simple CLI interface implementing the Erebos identity
@@ -39,6 +39,10 @@ Flag ci
default: False
manual: True
+Flag cryptonite
+ description: Use deprecated 'cryptonite' package
+ default: False
+
source-repository head
type: git
location: https://code.erebosprotocol.net/erebos
@@ -103,13 +107,13 @@ library
Erebos.Discovery
Erebos.Error
Erebos.Identity
+ Erebos.Invite
Erebos.Network
- Erebos.Network.Channel
- Erebos.Network.Protocol
Erebos.Object
Erebos.Pairing
Erebos.PubKey
Erebos.Service
+ Erebos.Service.Stream
Erebos.Set
Erebos.State
Erebos.Storable
@@ -121,7 +125,11 @@ library
Erebos.Sync
other-modules:
+ Erebos.Conversation.Class
Erebos.Flow
+ Erebos.Network.Address
+ Erebos.Network.Channel
+ Erebos.Network.Protocol
Erebos.Object.Internal
Erebos.Storage.Disk
Erebos.Storage.Internal
@@ -138,7 +146,7 @@ library
src/Erebos/Network/ifaddrs.h
if flag(ice)
- exposed-modules:
+ other-modules:
Erebos.ICE
c-sources:
src/Erebos/ICE/pjproject.c
@@ -155,7 +163,6 @@ library
bytestring >=0.10 && <0.13,
clock >=0.8 && < 0.9,
containers ^>= { 0.6, 0.7, 0.8 },
- crypton ^>= { 0.34, 1.0 },
deepseq >= 1.4 && <1.6,
directory >= 1.3 && <1.4,
filepath >=1.4 && <1.6,
@@ -172,6 +179,13 @@ library
uuid-types ^>= { 1.0.4 },
zlib >=0.6 && <0.8
+ if !flag(cryptonite)
+ build-depends:
+ crypton ^>= { 0.34, 1.0 },
+ else
+ build-depends:
+ cryptonite >=0.25 && <0.31,
+
if os(windows)
hs-source-dirs: src/windows
build-depends:
@@ -196,13 +210,13 @@ executable erebos
Test.Service
Version
Version.Git
+ WebSocket
autogen-modules:
Paths_erebos
build-depends:
ansi-terminal ^>= { 0.11, 1.0, 1.1 },
bytestring,
- crypton,
directory,
erebos,
mtl,
@@ -214,3 +228,11 @@ executable erebos
time,
transformers >= 0.5 && <0.7,
uuid-types,
+ websockets ^>= { 0.12.7, 0.13 },
+
+ if !flag(cryptonite)
+ build-depends:
+ crypton,
+ else
+ build-depends:
+ cryptonite,