When I run srcGen it generates the following code.
package com.chartboost.adserver.common.model.grpc
import higherkindness.mu.rpc.protocol._
import fs2.Stream
import shapeless.{:+:, CNil}
object Greeter {
@message final case class HelloRequest(name: String)
@message final case class HelloResponse(message: String)
@service(Protobuf, Identity) trait Greeter[F[_]] {
def SayHello(req: HelloRequest): F[HelloResponse]
}
}
Why do we have fs2 and shapeless imports eventhough they are not used in the generated file? It forces me to add mu-rpc-fs2 as a dependency even though I'm not using streaming rpc.
It also leads to unused imports errors forcing me to turn off the compiler flag that checks for unused imports.
It'd be great if someone can explain why we have fs2 and shapeless imports, even though they are not used in the generated code.
Hello!
Thanks for making this library. I'm trying to use this at work but ran into a few problems.
I have a proto file that looks like this:
When I run
srcGen
it generates the following code.mu-rpc-fs2
as a dependency even though I'm not using streaming rpc.It'd be great if someone can explain why we have
fs2
andshapeless
imports, even though they are not used in the generated code.Thanks