Expand description
Acton DX - Developer experience focused web framework for Rust
This crate provides:
- htmx: HTMX web framework module (feature-gated)
- cli: Command-line interface module (feature-gated)
§Features
htmx- HTMX web framework (default)cli- Command-line interface (default)postgres- PostgreSQL database support (default)sqlite- SQLite database supportmysql- MySQL database supportredis- Redis session and cache support (default)cedar- Cedar policy-based authorization (default)otel-metrics- OpenTelemetry metrics collectionaws-ses- AWS SES email backendclamav- ClamAV virus scanning
§Quick Start
§Using the CLI
# Create a new HTMX project
acton-dx htmx new my-app
# Start development server
acton-dx htmx dev
# Generate CRUD scaffold
acton-dx htmx scaffold crud Post title:string content:text§Using the Library
ⓘ
use acton_dx::prelude::*;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// Your HTMX application code here
Ok(())
}Re-exports§
pub use htmx::agents;pub use htmx::auth;pub use htmx::config;pub use htmx::email;pub use htmx::error;pub use htmx::extractors;pub use htmx::forms;pub use htmx::handlers;pub use htmx::health;pub use htmx::jobs;pub use htmx::middleware;pub use htmx::oauth2;pub use htmx::observability;pub use htmx::prelude;pub use htmx::responses;pub use htmx::state;pub use htmx::storage;pub use htmx::template;
Modules§
Macros§
- middleware_
constructors - Helper macro for creating standard middleware layer constructors