[package]
edition = "2024"
name = "thinkingdata-core"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core implementation of the ThinkingData Analytics Rust SDK: data model, validation, and log/batch/debug consumers with blocking and async APIs."
readme = "README.md"
keywords = [
"thinkingdata",
"analytics",
"sdk",
"tracking",
"te",
]
categories = ["api-bindings"]
license = "Apache-2.0"
repository = "https://github.com/houseme/thinkingdata"
resolver = "2"
[features]
async = [
"dep:async-trait",
"dep:flate2",
"dep:uuid",
]
blocking = [
"dep:flate2",
"dep:uuid",
]
default = ["blocking"]
[lib]
name = "thinkingdata_core"
path = "src/lib.rs"
[[example]]
name = "async_track"
path = "examples/async_track.rs"
required-features = ["async"]
[[example]]
name = "batch_upload"
path = "examples/batch_upload.rs"
required-features = ["blocking"]
[[example]]
name = "debug_validate"
path = "examples/debug_validate.rs"
required-features = ["blocking"]
[[example]]
name = "log_basic"
path = "examples/log_basic.rs"
required-features = ["blocking"]
[[test]]
name = "analytics"
path = "tests/analytics.rs"
[[test]]
name = "async_pipeline"
path = "tests/async_pipeline.rs"
[[test]]
name = "batch_consumer"
path = "tests/batch_consumer.rs"
[[test]]
name = "debug_consumer"
path = "tests/debug_consumer.rs"
[dependencies.async-trait]
version = "0.1.92"
optional = true
[dependencies.flate2]
version = "1.1.11"
optional = true
[dependencies.jiff]
version = "1.0.0"
[dependencies.regex]
version = "1.13.1"
[dependencies.reqwest]
version = "0.13.5"
features = ["form"]
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.154"
[dependencies.thiserror]
version = "2.0.21"
[dependencies.tokio]
version = "1.54.1"
features = [
"macros",
"rt-multi-thread",
"sync",
"time",
]
[dependencies.url]
version = "2.5.8"
[dependencies.uuid]
version = "1.29.3"
features = ["v4"]
optional = true
[dev-dependencies.flate2]
version = "1.1.11"
[dev-dependencies.serde_json]
version = "1.0.154"
[dev-dependencies.tokio]
version = "1.54.1"
features = [
"macros",
"rt-multi-thread",
"sync",
"time",
"test-util",
]