Fix Jinja2 template syntax formatting
This commit is contained in:
13
Cargo.toml
13
Cargo.toml
@@ -5,23 +5,26 @@ edition = "2021"
|
||||
description = "{{project-description}}"
|
||||
|
||||
[dependencies]
|
||||
{% if include_aide %}aide = { version = "0.16.0-alpha.1", features = [
|
||||
{% if include_aide %}
|
||||
aide = { version = "0.16.0-alpha.1", features = [
|
||||
"axum",
|
||||
"axum-json",
|
||||
"axum-query",
|
||||
] }
|
||||
{% endif %}anyhow = "1.0.101"
|
||||
{% endif %}
|
||||
anyhow = "1.0.101"
|
||||
axum = { version = "0.8.8", features = ["json", "query"] }
|
||||
axum-app-wrapper = { git = "https://gitea.fasharp.io/fa-sharp/axum-app-wrapper", rev = "a8d5e4f962" }
|
||||
{% if include_aide %}schemars = { version = "1.0", features = [
|
||||
dotenvy = "0.15.7"
|
||||
figment = { version = "0.10.19", features = ["env"] }
|
||||
{% if include_aide %}
|
||||
schemars = { version = "1.0", features = [
|
||||
"chrono04",
|
||||
"preserve_order",
|
||||
"url2",
|
||||
"uuid1"
|
||||
] }
|
||||
{% endif %}
|
||||
dotenvy = "0.15.7"
|
||||
figment = { version = "0.10.19", features = ["env"] }
|
||||
serde = "1.0.228"
|
||||
serde_json = "1.0.145"
|
||||
tokio = { version = "1.48.0", default-features = false, features = [
|
||||
|
||||
12
README.md
12
README.md
@@ -4,12 +4,12 @@ A production-ready template for building web services with Rust and Axum.
|
||||
|
||||
## Features
|
||||
|
||||
- 🚀 **Axum** - Fast and ergonomic web framework
|
||||
- ⚙️ **Configuration Management** - Environment-based config with `figment`
|
||||
- 📝 **Structured Logging** - JSON logging in production with `tracing`
|
||||
- 🔄 **Graceful Shutdown** - Handles SIGTERM and SIGINT signals
|
||||
- 🏗️ **Plugin Architecture** - Modular app initialization with `axum-app-wrapper`
|
||||
- 🔌 **Optional OpenAPI** - API documentation with `aide` (optional)
|
||||
- **Axum** - Fast and ergonomic web framework
|
||||
- **Configuration Management** - Environment-based config with `figment`
|
||||
- **Structured Logging** - JSON logging in production with `tracing`
|
||||
- **Graceful Shutdown** - Handles SIGTERM and SIGINT signals
|
||||
- ️**Plugin Architecture** - Modular app initialization with `axum-app-wrapper`
|
||||
- **Optional OpenAPI** - API documentation with `aide` (optional)
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@ use std::net::{IpAddr, Ipv4Addr};
|
||||
|
||||
use anyhow::Context;
|
||||
use axum_app_wrapper::AdHocPlugin;
|
||||
{% if include_aide %}use schemars::JsonSchema;
|
||||
{% if include_aide %}
|
||||
use schemars::JsonSchema;
|
||||
{% endif %}
|
||||
use serde::Deserialize;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user