# 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 = "2021"
name = "things3-core"
version = "1.3.0"
authors = ["GarthDB <garthdb@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for Things 3 database access and data models"
homepage = "https://github.com/GarthDB/rust-things3"
documentation = "https://docs.rs/things3-core"
readme = "README.md"
keywords = [
    "things3",
    "productivity",
    "task-management",
    "sqlite",
    "async",
]
categories = [
    "database",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/GarthDB/rust-things3"

[features]
advanced-queries = []
batch-operations = [
    "dep:base64",
    "dep:async-stream",
    "dep:futures-core",
]
default = []
export-csv = ["dep:csv"]
export-ical = ["dep:icalendar"]
export-opml = ["dep:quick-xml"]
export-taskpaper = []
full = [
    "export-csv",
    "export-opml",
    "export-taskpaper",
    "export-ical",
    "observability",
    "advanced-queries",
    "batch-operations",
]
observability = ["dep:metrics"]
test-utils = []

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

[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"

[[example]]
name = "bulk_operations"
path = "examples/bulk_operations.rs"

[[example]]
name = "export_data"
path = "examples/export_data.rs"
required-features = [
    "export-csv",
    "export-opml",
    "export-taskpaper",
    "export-ical",
]

[[example]]
name = "search_tasks"
path = "examples/search_tasks.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "bulk_operations_benchmarks"
path = "benches/bulk_operations_benchmarks.rs"
harness = false
required-features = ["test-utils"]

[[bench]]
name = "cache_benchmarks"
path = "benches/cache_benchmarks.rs"
harness = false
required-features = ["test-utils"]

[[bench]]
name = "database_benchmarks"
path = "benches/database_benchmarks.rs"
harness = false
required-features = ["test-utils"]

[dependencies.anyhow]
version = "1.0"

[dependencies.async-stream]
version = "0.3"
optional = true

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

[dependencies.base64]
version = "0.22"
optional = true

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

[dependencies.csv]
version = "1.3"
optional = true

[dependencies.dashmap]
version = "5.5"

[dependencies.futures-core]
version = "0.3"
optional = true

[dependencies.icalendar]
version = "0.17"
optional = true

[dependencies.metrics]
version = "0.22"
optional = true

[dependencies.moka]
version = "0.12"
features = ["future"]

[dependencies.once_cell]
version = "1.19"

[dependencies.parking_lot]
version = "0.12"

[dependencies.proptest]
version = "1.0"

[dependencies.quick-xml]
version = "0.36"
features = ["serialize"]
optional = true

[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sqlx]
version = "0.8.1"
features = [
    "runtime-tokio-rustls",
    "sqlite",
    "chrono",
    "uuid",
    "json",
]
default-features = false

[dependencies.strsim]
version = "0.11"

[dependencies.sysinfo]
version = "0.30"

[dependencies.tempfile]
version = "3.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.0"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
    "chrono",
]

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

[dependencies.zstd]
version = "0.13"

[dev-dependencies.criterion]
version = "0.5"
features = [
    "html_reports",
    "async_tokio",
]

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.serial_test]
version = "3.1"
