sqlite-diff-rs 0.2.0

Build SQLite changeset and patchset binary formats programmatically, without SQLite
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.85"
name = "sqlite-diff-rs"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Build SQLite changeset and patchset binary formats programmatically, without SQLite"
documentation = "https://docs.rs/sqlite-diff-rs"
readme = "README.md"
keywords = [
    "sqlite",
    "changeset",
    "patchset",
    "session",
    "cdc",
]
categories = [
    "database",
    "encoding",
    "no-std",
]
license = "MIT"
repository = "https://github.com/LucaCappelletti94/sqlite-diff-rs"

[features]
default = []
diesel = ["dep:diesel"]
maxwell = [
    "dep:serde",
    "dep:serde_json",
]
pg-walstream = [
    "dep:pg_walstream",
    "dep:serde_json",
]
testing = [
    "dep:rusqlite",
    "dep:arbitrary",
]
wal2json = [
    "dep:serde",
    "dep:serde_json",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "apply_benchmark"
path = "benches/apply_benchmark.rs"
harness = false
required-features = ["testing"]

[[bench]]
name = "builder_vs_rusqlite"
path = "benches/builder_vs_rusqlite.rs"
harness = false
required-features = ["testing"]

[dependencies.arbitrary]
version = "1"
features = ["derive"]
optional = true

[dependencies.diesel]
version = "2"
optional = true
default-features = false

[dependencies.hashbrown]
version = "0.17.1"

[dependencies.indexmap]
version = "2"
default-features = false

[dependencies.pg_walstream]
version = "0.7"
optional = true
default-features = false

[dependencies.rusqlite]
version = "0.40"
features = [
    "bundled",
    "session",
]
optional = true

[dependencies.serde]
version = "1"
features = [
    "derive",
    "alloc",
]
optional = true
default-features = false

[dependencies.serde_json]
version = "1"
features = ["alloc"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

[dev-dependencies.arbitrary]
version = "1"
features = ["derive"]

[dev-dependencies.bytes]
version = "1"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.diesel]
version = "2"
features = [
    "postgres_backend",
    "mysql_backend",
]
default-features = false

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.rand]
version = "0.10.1"

[dev-dependencies.rusqlite]
version = "0.40"
features = [
    "bundled",
    "session",
    "backup",
]

[dev-dependencies.uuid]
version = "1"
features = ["v7"]

[lints.clippy]
clone_on_copy = "forbid"
doc_markdown = "allow"
missing_panics_doc = "allow"
new_ret_no_self = "allow"
should_panic_without_expect = "allow"
struct_excessive_bools = "allow"
unreadable_literal = "allow"

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
deprecated = "deny"
missing_docs = "forbid"
unconditional_recursion = "forbid"
unreachable_patterns = "forbid"
unused_import_braces = "forbid"
unused_macro_rules = "forbid"
unused_must_use = "forbid"

[lints.rustdoc]
bare_urls = "forbid"
broken_intra_doc_links = "forbid"
invalid_codeblock_attributes = "forbid"
invalid_html_tags = "forbid"
invalid_rust_codeblocks = "forbid"
missing_crate_level_docs = "forbid"
redundant_explicit_links = "forbid"
unescaped_backticks = "forbid"

[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true