summaryrefslogtreecommitdiff
path: root/bittorrent.cabal
blob: c9005f69633964767c76de1a92d67e8c84d55fa9 (plain)
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
name:                  bittorrent
version:               0.0.0.3
license:               BSD3
license-file:          LICENSE
author:                Sam Truzjan
maintainer:            Sam Truzjan <pxqr.sta@gmail.com>
copyright:             (c) 2013, Sam Truzjan
category:              Network
build-type:            Simple
cabal-version:         >= 1.10
tested-with:           GHC == 7.4.1
                     , GHC == 7.6.3
homepage:              https://github.com/cobit/bittorrent
bug-reports:           https://github.com/cobit/bittorrent/issues
synopsis:              Bittorrent protocol implementation.
description:

  A library for making Haskell bittorrent applications easy.
  .
  For more information see:
  <https://github.com/cobit/bittorrent/blob/master/README.md>

extra-source-files:    res/dapper-dvd-amd64.iso.torrent
                       res/pkg.torrent
                     , README.md
                     , ChangeLog

source-repository head
  type:                git
  location:            git://github.com/cobit/bittorrent.git

source-repository this
  type:                git
  location:            git://github.com/cobit/bittorrent.git
  branch:              master
  tag:                 v0.0.0.3

library
  default-language:    Haskell2010
  default-extensions:  PatternGuards
                     , OverloadedStrings
                     , RecordWildCards
  hs-source-dirs:      src
  exposed-modules:     Data.Torrent
--                     , Data.Torrent.Bitfield
                     , Data.Torrent.Block
                     , Data.Torrent.Client
                     , Data.Torrent.InfoHash
                     , Data.Torrent.Layout
                     , Data.Torrent.Magnet
                     , Data.Torrent.Piece
                     , Data.Torrent.Progress
                     , Data.Torrent.Tree
                     , Data.Torrent.URN
--                   , Network.BitTorrent
                     , Network.BitTorrent.Core.PeerId
                     , Network.BitTorrent.Core.PeerAddr
--                   , Network.BitTorrent.DHT
--                   , Network.BitTorrent.DHT.Protocol
--                   , Network.BitTorrent.DHT.Session
--                   , Network.BitTorrent.Exchange
--                   , Network.BitTorrent.Exchange.Assembler
--                   , Network.BitTorrent.Exchange.Message
--                   , Network.BitTorrent.Exchange.Session
--                     , Network.BitTorrent.Exchange.Status
--                   , Network.BitTorrent.Exchange.Wire
--                   , Network.BitTorrent.Extension
--                   , Network.BitTorrent.Tracker
--                     , Network.BitTorrent.Tracker.RPC
                     , Network.BitTorrent.Tracker.Wai
                     , Network.BitTorrent.Tracker.RPC.Message
                     , Network.BitTorrent.Tracker.RPC.HTTP
                     , Network.BitTorrent.Tracker.RPC.UDP
--                   , Network.BitTorrent.Tracker.Session
--                   , Network.BitTorrent.Session
--                   , Network.BitTorrent.Session.Types
                     , System.Torrent.FileMap
                     , System.Torrent.Storage
  other-modules:       Paths_bittorrent

  build-depends:       base       == 4.*
                     , bits-extras  >= 0.1.2
                     , convertible  >= 1.0
                     , pretty       >= 1.1
                     , pretty-class >= 0.1

                       -- Control
                     , deepseq      >= 1.3
                     , lens         >= 3.0
                     , resourcet    >= 0.4
--                     , transformers

                       -- Concurrency
--                     , SafeSemaphore
--                     , BoundedChan >= 1.0.1.0
--                     , stm         >= 2.4

                       -- Streaming
                     , conduit          >= 1.0
                     , network-conduit  >= 1.0
                     , cereal-conduit   >= 0.5

                       -- Data & Data structures
                     , bytestring   >= 0.10
                     , containers   >= 0.5
                     , data-default >= 0.4
                     , intset       >= 0.1
                     , split        >= 0.2
                     , text         >= 0.11.0
--                     , unordered-containers
                     , vector       >= 0.10

                       -- Hashing
                     , cryptohash   == 0.10.*
                     , hashable >= 1.2

                       -- Codecs & Serialization
                     , aeson >= 0.6.2.0
                     , base16-bytestring >= 0.1
                     , base32-bytestring >= 0.2
                     , base64-bytestring >= 1.0
                     , bencoding    >= 0.4
                     , cereal       >= 0.3.5

                       -- Time
                     , old-locale   >= 1.0
                     , time         >= 1.0

                       -- Network
                     , network      >= 2.4
--                     , krpc        >= 0.4
                     , http-types   >= 0.8
                     , http-conduit >= 1.9
                     , wai          >= 1.4

                       -- System
                     , directory   >= 1.2
                     , entropy     >= 0.2
                     , filepath    >= 1.3
                     , mmap        >= 0.5

  ghc-options:         -Wall
  ghc-prof-options:


test-suite spec
  default-language:    Haskell2010
  default-extensions:  OverloadedStrings
  type:                exitcode-stdio-1.0
  hs-source-dirs:      tests
  main-is:             Spec.hs
  other-modules:       Data.Torrent.ClientSpec
                       Data.Torrent.InfoHashSpec
                       Data.Torrent.LayoutSpec
                       Data.Torrent.MagnetSpec
                       Data.Torrent.MetainfoSpec
                       Data.Torrent.ProgressSpec
                       Network.BitTorrent.Core.PeerIdSpec
                       Network.BitTorrent.Tracker.RPC.MessageSpec
                       Network.BitTorrent.Tracker.RPC.HTTPSpec
                       Network.BitTorrent.Tracker.RPC.UDPSpec
                       System.Torrent.FileMapSpec
  build-depends:       base == 4.*
                     , bytestring
                     , directory
                     , filepath
                     , time
                     , convertible
                     , data-default
                     , monad-loops

                     , aeson
                     , cereal
                     , network
                     , text

                     , mtl
                     , resourcet

                     , hspec
                     , QuickCheck
                     , quickcheck-instances
                     , http-types
                     , bencoding
                     , bittorrent
  ghc-options:         -Wall -fno-warn-orphans


--benchmark bench
--  default-language:    Haskell2010
--  default-extensions:
--  type:                exitcode-stdio-1.0
--  hs-source-dirs:      bench
--  main-is:             Main.hs
--  build-depends:       base
--                     , bytestring
--                     , cereal
--                     , network
--
--                     , criterion
--                     , deepseq
--
--                     , bittorrent
--  ghc-options:         -O2 -Wall -fno-warn-orphans