-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathhaskell-tor.cabal
162 lines (152 loc) · 7.3 KB
/
haskell-tor.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
name: haskell-tor
version: 0.1.2
synopsis: A Haskell Tor Node
description: An implementation of the Tor anonymity system in Haskell.
The core functionality is exported both as an application
and as a high-level library exported by the 'Tor' module.
Please see that module for common usage scenarios, and
dip only into the other files for advanced / unplanned
cases.
homepage: https://github.com/GaloisInc/haskell-tor
license: BSD3
license-file: LICENSE
author: Adam Wick
maintainer: [email protected]
category: Network
build-type: Simple
extra-source-files: README.md
cabal-version: >=1.10
tested-with: GHC == 7.10.2, GHC == 7.8.4
source-repository head
type: git
location: https://github.com/GaloisInc/haskell-tor
Flag network
Description: Use the base network library
Flag hans
Description: Use the Haskell Network Stack (HaNS)
library
default-language: Haskell2010
default-extensions: CPP
other-extensions: DeriveDataTypeable, ExistentialQuantification,
FlexibleInstances, MultiWayIf, OverloadedStrings,
RecordWildCards
ghc-options: -Wall
hs-source-dirs: src
build-depends:
array >= 0.4 && < 0.7,
asn1-encoding >= 0.9 && < 0.11,
asn1-types >= 0.3 && < 0.5,
async >= 2.0.2 && < 2.2,
attoparsec >= 0.13 && < 0.15,
base >= 4.6 && < 5.0,
base64-bytestring >= 1.0 && < 1.2,
binary >= 0.7.1 && < 0.9,
bytestring >= 0.10 && < 0.11,
cereal >= 0.4 && < 0.6,
containers >= 0.5 && < 0.7,
cryptonite >= 0.6 && < 0.10,
fingertree >= 0.1 && < 0.3,
hourglass >= 0.2.9 && < 0.4,
memory >= 0.7 && < 0.11,
monadLib >= 3.7 && < 3.9,
pretty-hex >= 1.0 && < 1.2,
pure-zlib >= 0.4 && < 0.5,
time >= 1.4 && < 1.6,
tls >= 1.3.2 && < 1.5,
x509 >= 1.6 && < 1.8,
x509-store >= 1.6 && < 1.8
other-modules:
Crypto.Hash.Easy,
Crypto.PubKey.RSA.KeyHash,
Paths_haskell_tor
exposed-modules:
Tor,
Tor.Circuit,
Tor.DataFormat.Consensus,
Tor.DataFormat.DefaultDirectory,
Tor.DataFormat.DirCertInfo,
Tor.DataFormat.Helpers,
Tor.DataFormat.RelayCell,
Tor.DataFormat.RouterDesc,
Tor.DataFormat.TorAddress,
Tor.DataFormat.TorCell,
Tor.HybridCrypto,
Tor.Link,
Tor.Link.DH,
Tor.Link.CipherSuites,
Tor.NetworkStack.Fetch,
Tor.NetworkStack,
Tor.Options,
Tor.RNG,
Tor.RouterDesc.Render,
Tor.RouterDesc,
Tor.State.CircuitManager,
Tor.State.Credentials,
Tor.State.Directories,
Tor.State.LinkManager,
Tor.State.Routers
if flag(network) && !os(HaLVM)
build-depends: network >= 2.5 && < 2.7
exposed-modules: Tor.NetworkStack.System
if flag(hans)
build-depends: hans >= 2.6 && < 2.8
exposed-modules: Tor.NetworkStack.Hans
executable haskell-tor
main-is: Main.hs
other-modules: Tor.Flags
default-language: Haskell2010
ghc-options: -Wall
hs-source-dirs: exe
build-depends:
asn1-encoding >= 0.8 && < 0.10,
asn1-types >= 0.2 && < 0.4,
base >= 4.6 && < 5.0,
base64-bytestring >= 1.0 && < 1.2,
bytestring >= 0.10 && < 0.11,
cryptonite >= 0.6 && < 0.10,
haskell-tor >= 0.1 && < 0.3,
hourglass >= 0.2.9 && < 0.4,
memory >= 0.7 && < 0.11,
time >= 1.4 && < 1.6,
tls >= 1.3.2 && < 1.5,
x509 >= 1.6 && < 1.8
if flag(hans)
build-depends: hans >= 2.6 && < 2.8
if flag(network) && !os(HaLVM)
build-depends: network >= 2.5 && < 2.7
if os(HaLVM)
build-depends: HALVMCore >= 2.0 && < 2.4,
XenDevice >= 2.0 && < 2.4
if (!flag(hans) && !flag(network)) || (!flag(hans) && os(HaLVM))
buildable: False
test-suite test-tor
type: exitcode-stdio-1.0
main-is: Test.hs
ghc-options: -Wall
hs-source-dirs: test
default-language: Haskell2010
other-extensions: CPP, FlexibleInstances, TypeSynonymInstances
other-modules:
Test.CipherSuite,
Test.Handshakes,
Test.HybridEncrypt,
Test.Standard,
Test.TorCell
ghc-options: -fno-warn-orphans
build-depends:
asn1-types >= 0.2 && < 0.4,
base >= 4.6 && < 5.0,
binary >= 0.7 && < 0.9,
bytestring >= 0.10 && < 0.11,
cryptonite >= 0.6 && < 0.10,
haskell-tor >= 0.1 && < 0.3,
hourglass >= 0.2.9 && < 0.4,
HUnit >= 1.2 && < 1.4,
QuickCheck >= 2.7 && < 2.9,
memory >= 0.7 && < 0.11,
pretty-hex >= 1.0 && < 1.4,
test-framework >= 0.8 && < 0.10,
test-framework-hunit >= 0.3 && < 0.5,
test-framework-quickcheck2 >= 0.3 && < 0.5,
time >= 1.4 && < 1.6,
x509 >= 1.6 && < 1.8