#open-api #documentation #axum #summary #comments #description #operation

aidecomment

这是一个Rust包,可以从文档注释中获取OpenAPI操作的摘要和描述,并将其提供给aide。

2个版本

0.1.1 2024年2月16日
0.1.0 2024年2月15日

543过程宏

每月23次下载

MIT 许可证

7KB
60

Aide Comment

此包提供了一个宏,可用于从文档注释中提取OpenAPI操作的摘要和描述。此包支持axum,并将其信息与aide集成。

/// This is a summary
///
/// This is a longer description of the endpoint that is expected to be much
/// more detailed and may span more lines than the first paragraph summary.
#[aidecomment]
async fn my_handler() -> &'static str {
    "hello world"
}

lib.rs:

此包提供了一个宏,可用于从文档注释中提取OpenAPI操作的摘要和描述。此包支持axum,并将其信息与aide集成。

依赖关系

~275–720KB
~17K SLoC