# 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"
name = "eventcore-sqlite"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQLite event store adapter for EventCore event sourcing library"
readme = false
license = "MIT"
repository = "https://github.com/jwilger/eventcore"
resolver = "2"

[features]
default = ["encryption"]
encryption = ["rusqlite/bundled-sqlcipher-vendored-openssl"]

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

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

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

[dependencies.eventcore-types]
version = "0.7.0"

[dependencies.rusqlite]
version = "0.32"
default-features = false

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.48.0"
features = [
    "sync",
    "rt",
]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.19.0"
features = [
    "serde",
    "v7",
]

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[dev-dependencies.tokio]
version = "1.48.0"
features = [
    "macros",
    "rt-multi-thread",
]
default-features = false

[lints.clippy]
allow_attributes = "deny"

[lints.rust]
dead_code = "forbid"
deprecated = "deny"
invalid_value = "forbid"
meta_variable_misuse = "deny"
non_ascii_idents = "deny"
non_camel_case_types = "deny"
non_snake_case = "deny"
non_upper_case_globals = "deny"
overflowing_literals = "forbid"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unconditional_recursion = "forbid"
unreachable_code = "deny"
unreachable_pub = "forbid"
unsafe_code = "forbid"
unused_allocation = "forbid"
unused_assignments = "deny"
unused_attributes = "deny"
unused_extern_crates = "deny"
unused_imports = "deny"
unused_must_use = "deny"
unused_mut = "deny"
unused_parens = "deny"
unused_qualifications = "deny"
unused_results = "deny"
unused_variables = "deny"
warnings = "deny"

[lints.rust.bad_style]
level = "deny"
priority = -1

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rust.rust_2021_compatibility]
level = "deny"
priority = -1
