# 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.95"
name = "obs-parquet"
version = "0.2.1"
authors = ["obs contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Single-table Parquet/Arrow analytics sink for the obs SDK."
homepage = "https://github.com/tyrchen/obs"
documentation = "https://docs.rs/"
readme = false
keywords = [
    "observability",
    "obs",
    "parquet",
    "arrow",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/tyrchen/obs"

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

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

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

[dependencies.arc-swap]
version = "1.9"

[dependencies.arrow-array]
version = "58"

[dependencies.arrow-buffer]
version = "58"

[dependencies.arrow-schema]
version = "58"

[dependencies.blake3]
version = "1.8"
default-features = false

[dependencies.buffa]
version = "0.5"
features = ["std"]
default-features = false

[dependencies.bytes]
version = "1.11"

[dependencies.obs-core]
version = "0.2.1"

[dependencies.obs-proto]
version = "0.2.1"

[dependencies.parking_lot]
version = "0.12"

[dependencies.parquet]
version = "58"
features = [
    "arrow",
    "snap",
    "lz4",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tracing]
version = "0.1"

[dev-dependencies.arrow-array]
version = "58"

[dev-dependencies.arrow-buffer]
version = "58"

[dev-dependencies.buffa]
version = "0.5"
features = ["std"]
default-features = false

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

[dev-dependencies.obs-core]
version = "0.2.1"
features = ["test"]

[dev-dependencies.obs-macros]
version = "0.2.1"

[dev-dependencies.parquet]
version = "58"
features = [
    "arrow",
    "snap",
    "lz4",
]
default-features = false

[dev-dependencies.tempfile]
version = "3.27"

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

[lints.clippy]
expect_used = "warn"
indexing_slicing = "warn"
panic = "warn"
unwrap_used = "warn"

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe_code = "forbid"

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1
