oasgen-core 0.20.2

Dependency of oasgen. Generates OpenAPI 3.0 spec based on Rust code. Works with actix-web, but architected to easily extend to other frameworks (or no framework).
Documentation
1
2
3
4
5
6
7
8
9
use openapiv3::Operation;

pub struct OperationRegister {
    // module_path: &'static str,
    pub name: &'static str,
    pub constructor: &'static (dyn Sync + Send + Fn() -> Operation),
}

inventory::collect!(OperationRegister);