packages feed

http-client-rustls-0.0.2.0: http-client-rustls.cabal

cabal-version: 2.4
name: http-client-rustls
version: 0.0.2.0
synopsis: http-client TLS backend using Rustls
description:
  Make HTTPS connections using [http-client](https://hackage.haskell.org/package/http-client)
  and [Rustls](https://github.com/rustls/rustls).

category: Cryptography, Network
author: amesgen
maintainer: amesgen@amesgen.de
homepage: https://github.com/amesgen/hs-rustls/tree/main/http-client-rustls
bug-reports: https://github.com/amesgen/hs-rustls/issues
license: CC0-1.0
license-file: LICENSE
extra-source-files:
  CHANGELOG.md
  README.md

source-repository head
  location: https://github.com/amesgen/hs-rustls
  type: git

common commons
  default-language: GHC2021
  ghc-options:
    -Wall
    -Wredundant-constraints
    -Wunused-packages
    -Wno-name-shadowing
    -Wno-unticked-promoted-constructors
    -fhide-source-paths

  default-extensions:
    BlockArguments
    LambdaCase
    OverloadedStrings
    ViewPatterns

library
  import: commons
  ghc-options: -Wmissing-export-lists
  hs-source-dirs: src
  exposed-modules:
    Network.HTTP.Client.Rustls

  build-depends:
    base >=4.16 && <5,
    bytestring >=0.10 && <0.13,
    http-client ^>=0.7.11,
    network >=3.1 && <3.3,
    resourcet ^>=1.2 || ^>=1.3,
    rustls ^>=0.2,
    text >=2.0 && <2.2,

test-suite tasty
  import: commons
  type: exitcode-stdio-1.0
  main-is: Main.hs
  hs-source-dirs: test
  ghc-options:
    -threaded
    -rtsopts
    -with-rtsopts=-N

  build-depends:
    base,
    bytestring,
    directory ^>=1.3,
    filepath >=1.4 && <1.6,
    http-client,
    http-client-rustls,
    http-types ^>=0.12,
    network,
    port-utils ^>=0.2,
    process ^>=1.6,
    rustls,
    tasty >=1.3 && <1.6,
    tasty-hunit ^>=0.10,
    temporary ^>=1.3,