Menu

I built Xecute, a CLI tool to structure Rust API projects with Axum
📰

I built Xecute, a CLI tool to structure Rust API projects with Axum

DEV Community: rust·Morshedul Munna·2 days ago
#x4M3D7Qn
#devtorust#devto#dev#xecute#axum
Reading 0:00
15s threshold

Hey everyone!

I've been working with Rust and Axum and wanted to make the initial setup of API projects more organized and less repetitive. So, I built Xecute , an open-source CLI tool for Rust API development.

To clarify, Xecute is not a web framework . It's a set of tools and macros built on top of Axum. You still use Axum as your web framework, with Xecute helping you organize your application architecture.

What it provides

MVC architecture by default, with optional CQRS

Modular project and resource generation

Dependency injection

Payload validation and consistent error handling

Middleware support

Swagger/OpenAPI documentation

Structured logging and development hot reload

You can create and run a project with just a few commands:

cargo install xecute-cli --locked

xecute new my-api cd my-api xecute run dev

Enter fullscreen mode

Exit fullscreen mode

The goal is to reduce repetitive setup so developers can focus more on application logic while keeping Axum's flexibility.

GitHub:…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.