#swagger #specs #subcommand #generate #cargo-subcommand #cratyes

app cargo-swagger

A cargo subcommand to make it easy to generate Rust cratyes from swagger specs

1 unstable release

Uses old Rust 2015

0.1.0 Apr 16, 2018
0.0.4 Nov 24, 2017
0.0.3 Nov 24, 2017
0.0.2 Nov 24, 2017
0.0.1 Nov 24, 2017

#52 in #specs

Apache-2.0/MIT

8KB
88 lines

cargo swagger

This tool adds a cargo swagger subcommand to make it simple to generate Rust crates from Swagger/OpenAPI specs.

crates.io

Uses https://github.com/swagger-api/swagger-codegen for the codegen, but wraps it so it's easier for Rust usage.

Installation

cargo-swagger requires that you have Docker installed. See https://docs.docker.com/engine/installation/ for the Docker install instructions.

$ cargo install cargo-swagger

Dependencies

~7–12MB
~177K SLoC