Re:Type safe web stack with Rust and TypeScript
by sidoshi on Friday July 04, 2025 @08:45AM
(#44464026)
I was looking for a solution like this as rspc isn't maintained anymore. I love how clean it looks. But I am a bit new to rust and I am not sure about poem. Axum is very popular and seems like a stable crate. Can you share your thoughts on Poem? Does it feel outdated or unstable? Does it cover all your needs?
[ Parent
| on HN ]
Re:Type safe web stack with Rust and TypeScript
by vaylian on Friday July 04, 2025 @08:49AM
(#44464066)
> 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.
Re:Type safe web stack with Rust and TypeScript
by sidoshi on Friday July 04, 2025 @09:00AM
(#44464136)
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.
Re:Type safe web stack with Rust and TypeScript
by vaylian on Friday July 04, 2025 @11:32AM
(#44465400)
> 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.