3 ms·
I have slowly been getting into Rust for some personal projects. Already ported one of my Clojure applications to Rust and really enjoy the the tooling (and res
by koito17 2y ago
I have slowly been getting into Rust for some personal projects. Already ported one of my Clojure applications to Rust and really enjoy the the tooling (and resource efficiency!) compared to Clojure.
Would like to try Axum, but couldn't find reliable code generation tools. Has the tooling improved on that front? I would love to hear if anyone has tried the rust-axum[1] OpenAPI generator and whether it generates decent Axum-based code.
OpenAPI isn't a hard requirement. I'm open to using Protobuf or Smithy as an IDL if the Rust ecosystem offers better server code generation with them.
[1] https://openapi-generator.tech/docs/generators/rust-axum/ https://openapi-generator.tech/docs/generators/rust-axum/
- nicce 2y agoSmithy can likely do all you need: https://github.com/smithy-lang/smithy-rs https://github.com/smithy-lang/smithy-rs Since it is used on production in AWS, some versions are lagging behind, however. Server generator is based on hyper/tower and works with axum too.