packages feed

acolyte-grpc-0.1.0.1: acolyte-grpc.cabal

cabal-version:   3.12
name:            acolyte-grpc
version:         0.1.0.1
synopsis:        gRPC interpretation for acolyte API types
category:        Network
description:
  Interprets acolyte-core API types as gRPC services.
  The same API type that drives REST routing, OpenAPI generation,
  and type-safe clients also drives gRPC serving.
  .
  Provides @ToProtoType@ for protobuf-compatible serialization,
  @GrpcReady@ for compile-time validation, @.proto@ file generation,
  and @mkGrpcServer@ to build a gRPC service from the API type.

license:         BSD-3-Clause
license-file:    LICENSE
author:          Josh Burgess
maintainer:      Josh Burgess <joshburgess.webdev@gmail.com>
homepage:        https://github.com/joshburgess/acolyte
bug-reports:     https://github.com/joshburgess/acolyte/issues
build-type:      Simple

extra-doc-files:
  CHANGELOG.md

library
  exposed-modules:
    Acolyte.Grpc
    Acolyte.Grpc.Proto
    Acolyte.Grpc.Server
    Acolyte.Grpc.Generate

  build-depends:
      base                    >= 4.20 && < 5
    , acolyte-core            >= 0.1  && < 0.2
    , acolyte-server          >= 0.1  && < 0.2
    , spire                   >= 0.1  && < 0.2
    , spire-grpc              >= 0.1  && < 0.2
    , spire-protobuf          >= 0.1  && < 0.2
    , http-core               >= 0.1  && < 0.2
    , bytestring              >= 0.11 && < 0.13
    , text                    >= 2.0  && < 2.2
    , http-types              >= 0.12 && < 0.13
    , case-insensitive        >= 1.2  && < 1.3

  hs-source-dirs: src
  default-language: GHC2024
  default-extensions:
    DataKinds
    TypeFamilies
    TypeOperators
    OverloadedStrings
    AllowAmbiguousTypes
    UndecidableInstances
    ScopedTypeVariables
    FlexibleInstances
    FlexibleContexts
    MultiParamTypeClasses
    StrictData

  ghc-options: -Wall -funbox-strict-fields

test-suite spec
  type: exitcode-stdio-1.0
  main-is: Main.hs
  hs-source-dirs: test
  default-language: GHC2024
  default-extensions:
    DataKinds
    TypeFamilies
    TypeOperators
    OverloadedStrings
    AllowAmbiguousTypes
    ScopedTypeVariables
    FlexibleInstances
    StrictData

  ghc-options: -Wall -rtsopts "-with-rtsopts=-K1K"

  build-depends:
      base                    >= 4.20 && < 5
    , acolyte-grpc            >= 0.1  && < 0.2
    , acolyte-core            >= 0.1  && < 0.2
    , acolyte-server          >= 0.1  && < 0.2
    , spire                   >= 0.1  && < 0.2
    , spire-grpc              >= 0.1  && < 0.2
    , http-core               >= 0.1  && < 0.2
    , bytestring              >= 0.11 && < 0.13
    , text                    >= 2.0  && < 2.2
    , http-types              >= 0.12 && < 0.13
    , containers              >= 0.6  && < 0.8

test-suite properties
  type: exitcode-stdio-1.0
  main-is: Properties.hs
  hs-source-dirs: test
  default-language: GHC2024
  default-extensions:
    DataKinds
    OverloadedStrings
    StrictData
  ghc-options: -Wall
  build-depends:
      base                    >= 4.20 && < 5
    , acolyte-grpc            >= 0.1  && < 0.2
    , acolyte-core            >= 0.1  && < 0.2
    , acolyte-server          >= 0.1  && < 0.2
    , hedgehog                >= 1.4  && < 1.8
    , bytestring              >= 0.11 && < 0.13
    , text                    >= 2.0  && < 2.2

source-repository head
  type:     git
  location: https://github.com/joshburgess/acolyte.git