mandolin
Input openapi.json/yaml, output server source code in rust.
Online demo with wasm: https://lzpel.github.io/mandolin/
What is this.
Generate server code in Rust from openapi specification and jinja2 templates.
Getting started
Render axum server code using builtin template
use mandolin;
use serde_yaml;
use fs;
Render axum server source code using your custom jinja2 template.
use mandolin;
use serde_yaml;
use fs;
version
- 0.1.11 update to flatten nested schema. prepare cli-command
mandolin-cli. - 0.1.7 hotfix
- 0.1.6 independent from regex, tera
- 0.1.5 fix ref filter
- 0.1.4 replace minijinja from tera
- 0.1.3
- simplify mandolin::Mandolin::new
pub fn new(api: OpenAPI) -> Result<Self, serde_yaml::Error>intopub fn new(api: OpenAPI) -> Self - remove mandolin::Mandolin::template_from_path
- move serde_yaml(deprecated) in dependency into in dev-dependency
- update README.md
- add examples
- rename mandolin::builtin into mandolin::templates
- exclude frontend from crate
- simplify mandolin::Mandolin::new
- 0.1.0 publish
my favorite mandolin music
- 月に舞う/武藤理恵 https://youtu.be/OVKkRj0di2I
- Suite Spagnola/C.Mandonico https://youtu.be/fCkcP_cuneU