rustango 0.17.4

Django-shaped web framework for Rust: ORM, migrations, auto-admin, multi-tenancy, audit log.
Documentation
//! Core types for rustango.
//!
//! This crate is dependency-light on purpose: no async, no DB drivers, no proc-macros.
//! Anything that needs to be referenced by both the macro output and the runtime lives here.

mod column;
mod error;
mod field_type;
mod query;
mod schema;
mod validate;
mod value;

pub use column::{Column, TypedAssignment, TypedExpr, TypedFilter};
pub use error::QueryError;
pub use field_type::FieldType;
pub use query::{
    Assignment, BulkInsertQuery, CountQuery, DeleteQuery, Filter, InsertQuery, Join, Op,
    OrderClause, SearchClause, SelectQuery, UpdateQuery, WhereExpr,
};
pub use schema::{
    infer_app_label_from_module_path, AdminConfig, FieldSchema, Fieldset, Model, ModelEntry,
    ModelSchema, Relation,
};
pub use validate::validate_value;
pub use value::SqlValue;

/// Re-exported so `#[derive(Model)]` output can name `inventory` without
/// requiring downstream crates to add their own dependency on it.
#[doc(hidden)]
pub use inventory;

/// Returns the crate version. Used by the workspace smoke test.
#[must_use]
pub fn version() -> &'static str {
    env!("CARGO_PKG_VERSION")
}