I'm trying to implement a HTTP REST API and want to separate the API definition from server and client implementations. My goal is to define an "API" crate and have different server implementations for this API.
Rocket offers support to generate an OpenAPI spec for a given server, but this is always bound to having a server implementation as well. In Haskell, Servant, for example, allows specifying the API as a type and then allows anything to implement that.
I think I could also live with being able to auto-generate server code from an OpenAPI specification.
Any pointers here are appreciated!