1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
一个基于 Axum 的“类 Spring”应用框架,提供宏驱动的自动发现(controllers/components/interceptors/advices)、验证、事务、缓存、事件、SQL/Mapper 等能力,帮助你快速搭建可维护的 Web 应用。
```rust
async fn main() -> anyhow::Result<()> {
}
```
如需显式控制顺序:
```rust
async fn main() -> anyhow::Result<()> {
}
```
- ------
更多示例和宏用法详见仓库顶层 `README.md`。
在 `Cargo.toml` 中启用所需功能:
```toml
[dependencies]
spring-axum = { version = "0.1", features = ["validator", "swagger", "sqlx_postgres"] }
```
MIT