auditlog 0.1.0

Audit trail for your data models — an ORM-agnostic core with a pluggable, async sqlx backend (SQLite & Postgres).
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "auditlog"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Audit trail for your data models — an ORM-agnostic core with a pluggable, async sqlx backend (SQLite & Postgres)."
documentation = "https://docs.rs/auditlog"
readme = "README.md"
keywords = [
    "audit",
    "audit-log",
    "audited",
    "versioning",
    "history",
]
categories = [
    "database",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/JijoBose/auditlog"

[package.metadata.docs.rs]
features = [
    "sqlite",
    "postgres",
]

[features]
default = ["sqlite"]
pg-tests = [
    "postgres",
    "dep:testcontainers-modules",
]
postgres = [
    "dep:sqlx",
    "sqlx/postgres",
    "sqlx/runtime-tokio",
    "sqlx/macros",
]
sqlite = [
    "dep:sqlx",
    "sqlx/sqlite",
    "sqlx/runtime-tokio",
    "sqlx/macros",
]

[lib]
name = "auditlog"
path = "src/lib.rs"

[[example]]
name = "blog"
path = "examples/blog.rs"
required-features = ["sqlite"]

[[test]]
name = "behavior"
path = "tests/behavior.rs"

[[test]]
name = "global_state"
path = "tests/global_state.rs"

[[test]]
name = "postgres"
path = "tests/postgres.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.indexmap]
version = "2"
features = ["serde"]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.sqlx]
version = "0.8"
optional = true
default-features = false

[dependencies.testcontainers-modules]
version = "0.12"
features = ["postgres"]
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["rt"]

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "rt",
    "time",
]