trojan-analytics 0.9.1

Analytics module for trojan-rs with ClickHouse support
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 = "2024"
name = "trojan-analytics"
version = "0.9.1"
authors = ["trojan-rust <164051043+trojan-rust@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Analytics module for trojan-rs with ClickHouse support"
homepage = "https://github.com/trojan-rust/trojan-rust"
documentation = "https://docs.rs/trojan"
readme = "README.md"
keywords = [
    "trojan",
    "analytics",
    "clickhouse",
    "metrics",
]
categories = ["network-programming"]
license = "GPL-3.0-only"
repository = "https://github.com/trojan-rust/trojan-rust"
resolver = "2"

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

[dependencies.clickhouse]
version = "0.14"
features = [
    "inserter",
    "time",
]

[dependencies.rand]
version = "0.10"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "time",
    "fs",
    "io-util",
]

[dependencies.tracing]
version = "0.1"

[dependencies.trojan-config]
version = "0.9.1"

[lints.clippy]
assertions_on_result_states = "warn"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_sign_loss = "warn"
error_impl_error = "warn"
exit = "warn"
or_fun_call = "warn"
ptr_as_ptr = "warn"
tests_outside_test_module = "warn"
undocumented_unsafe_blocks = "warn"

[lints.rust]
missing_debug_implementations = "warn"