Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Can you share your thoughts on Poem?

There's the poem crate and then there is the poem-openapi crate. The latter is used in this case and it provides very ergonomic ways to define an OpenAPI service in pure Rust. It's nicer than using the utoipa crate with axum (whilch ist still fairly nice, so no shade here).

I'm happy with poem-openapi.



But if I understand correctly, poem_openapi must be used with poem, correct? That brings me to the question of if I am okay with using poem to power the http API. Would be awesome if I could use the poem_openapi style with axum.


> But if I understand correctly, poem_openapi must be used with poem, correct?

poem_openapi uses poem under the hood.

> Would be awesome if I could use the poem_openapi style with axum.

If you prefer to use axum, have a look at the utoipa-axum crate. But poem and poem_openapi seem to be well-maintained as well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: