Skip to main content

ling_http/
lib.rs

1//! ling-http — an HTTPS/JSON/SQLite MVC framework for the Ling ecosystem.
2//!
3//! Roughly: axum + rustls + rusqlite, wrapped in a thin, opinionated layer
4//! so Ling services (starting with the linglibs crate registry) get a
5//! consistent JSON error shape, CRUD-resource routing, and HTTPS serving
6//! without each service reinventing that plumbing.
7
8pub mod app;
9pub mod db;
10pub mod error;
11pub mod mvc;
12pub mod pool;
13pub mod tls;
14
15pub use app::{serve_http, serve_tls, App};
16pub use db::Db;
17pub use error::{HttpError, Result};
18pub use mvc::{resource, Resource};
19
20#[cfg(feature = "dev-certs")]
21pub use app::serve_dev_tls;
22
23// Re-export the crates callers need in handler signatures so downstream
24// Cargo.toml files don't have to pin matching versions themselves.
25pub use axum;
26pub use rusqlite;
27pub use serde_json;
28pub use tokio;