posthog-rs 0.14.2

The official Rust client for Posthog (https://posthog.com/).
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 = "2018"
rust-version = "1.78.0"
name = "posthog-rs"
version = "0.14.2"
authors = ["PostHog <engineering@posthog.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The official Rust client for Posthog (https://posthog.com/)."
readme = "README.md"
license = "MIT"
repository = "https://github.com/posthog/posthog-rs"

[features]
async-client = ["tokio"]
capture-v1 = [
    "brotli",
    "zstd",
]
default = [
    "async-client",
    "error-tracking",
]
e2e-test = []
error-tracking = ["dep:backtrace"]
test-harness = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.backtrace]
version = "0.3.74"
optional = true

[dependencies.brotli]
version = "7.0"
optional = true

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

[dependencies.derive_builder]
version = "0.20.2"

[dependencies.flate2]
version = "1.0"

[dependencies.os_info]
version = "3.14"

[dependencies.regex]
version = "1.10"

[dependencies.reqwest]
version = "0.13.2"
features = [
    "rustls",
    "blocking",
    "json",
    "gzip",
]
default-features = false

[dependencies.semver]
version = "1.0.24"

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

[dependencies.serde_json]
version = "1.0.64"

[dependencies.sha1]
version = "0.10"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "sync",
    "time",
    "macros",
]
optional = true

[dependencies.tracing]
version = "0.1"

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

[dependencies.zstd]
version = "0.13"
optional = true

[dev-dependencies.ctor]
version = "0.1.26"

[dev-dependencies.dotenv]
version = "0.15.0"

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

[dev-dependencies.httpmock]
version = "0.7"

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]