softwaremill / tapir

Rapid development of self-documenting APIs
https://tapir.softwaremill.com
Apache License 2.0
1.36k stars 418 forks source link

Upgrade to cats effect 3 #1050

Closed ashwinbhaskar closed 3 years ago

catostrophe commented 3 years ago

This will probably require a huge effort to migrate all integrations to CE3. Is there a plan to start doing this in the nearest future @adamw?

adamw commented 3 years ago

@catostrophe I think we'll do that once sttp client & http4s are available in non-RC/non-M releases with cats-effect 3 support.

kubukoz commented 3 years ago

Hey, I think http4s is going to take a while before a stable 1.0. It's probably best to release something for the milestones already. Just opening a PR now will be good, maybe by the time it's finished there's something more stable out there :)

adamw commented 3 years ago

I planned on having parallel http4s 0.21 and 1.0 interpreters, but this is rather non-trivial: the server tests themselves rely on cats-effect, so this would mean copying them as well. Not something I'd like to maintain ;) So I'm afraid we'll have to switch to ce3-only at some point.

There's also some integrations missing, like zio-interop-cats (https://github.com/zio/interop-cats/issues/260), or catbird.

A PR for now seems reasonable :)