# 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"
rust-version = "1.91"
name = "dantalion"
version = "0.2.0-rc.1"
authors = ["Daemoniorum Engineering <engineering@daemoniorum.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Observability and telemetry - The Duke reveals all secrets"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/Daemoniorum-LLC/infernum"

[features]
default = ["otlp"]
jaeger = []
otlp = ["opentelemetry-otlp"]
prometheus = ["metrics-exporter-prometheus"]

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

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

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

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

[dependencies.dashmap]
version = "6.1"

[dependencies.infernum-core]
version = "0.2.0-rc.1"

[dependencies.metrics]
version = "0.24"

[dependencies.metrics-exporter-prometheus]
version = "0.18"
optional = true

[dependencies.opentelemetry]
version = "0.31"

[dependencies.opentelemetry-otlp]
version = "0.31"
features = ["grpc-tonic"]
optional = true

[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["rt-tokio"]

[dependencies.parking_lot]
version = "0.12"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tracing]
version = "0.1"

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

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

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

[dev-dependencies.tokio]
version = "1.48"
features = [
    "full",
    "test-util",
    "macros",
]

[lints.clippy]
assigning_clones = "allow"
await_holding_lock = "allow"
bool_to_int_with_if = "allow"
borrow_as_ptr = "allow"
branches_sharing_code = "allow"
case_sensitive_file_extension_comparisons = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_copy = "allow"
cloned_instead_of_copied = "allow"
cognitive_complexity = "allow"
collapsible_if = "allow"
collection_is_never_read = "allow"
debug_assert_with_mut_call = "allow"
default_trait_access = "allow"
derivable_impls = "allow"
derive_partial_eq_without_eq = "allow"
doc_link_with_quotes = "allow"
doc_markdown = "allow"
double_ended_iterator_last = "allow"
elidable_lifetime_names = "allow"
empty_docs = "allow"
equatable_if_let = "allow"
expect_used = "allow"
explicit_into_iter_loop = "allow"
explicit_iter_loop = "allow"
field_reassign_with_default = "allow"
float_cmp = "allow"
fn_params_excessive_bools = "allow"
for_kv_map = "allow"
format_push_string = "allow"
future_not_send = "allow"
get_first = "allow"
if_not_else = "allow"
if_same_then_else = "allow"
ignored_unit_patterns = "allow"
implicit_clone = "allow"
implicit_hasher = "allow"
imprecise_flops = "allow"
io_other_error = "allow"
items_after_statements = "allow"
iter_with_drain = "allow"
iter_without_into_iter = "allow"
large_enum_variant = "allow"
large_futures = "allow"
len_without_is_empty = "allow"
let_and_return = "allow"
let_unit_value = "allow"
literal_string_with_formatting_args = "allow"
manual_div_ceil = "allow"
manual_find = "allow"
manual_is_multiple_of = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
manual_non_exhaustive = "allow"
manual_pattern_char_comparison = "allow"
manual_strip = "allow"
many_single_char_names = "allow"
map_entry = "allow"
map_flatten = "allow"
map_identity = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_const_for_thread_local = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
mixed_attributes_style = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
naive_bytecount = "allow"
needless_borrow = "allow"
needless_borrows_for_generic_args = "allow"
needless_collect = "allow"
needless_continue = "allow"
needless_for_each = "allow"
needless_pass_by_ref_mut = "allow"
needless_pass_by_value = "allow"
needless_question_mark = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
new_ret_no_self = "allow"
no_effect_underscore_binding = "allow"
non_std_lazy_statics = "allow"
option_if_let_else = "allow"
option_option = "allow"
or_fun_call = "allow"
panic = "allow"
print_literal = "allow"
ptr_arg = "allow"
ptr_as_ptr = "allow"
redundant_clone = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
redundant_pattern_matching = "allow"
redundant_pub_crate = "allow"
ref_as_ptr = "allow"
ref_option = "allow"
result_large_err = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
should_implement_trait = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_char_pattern = "allow"
single_match_else = "allow"
string_lit_as_bytes = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
suboptimal_flops = "allow"
to_string_in_format_args = "allow"
todo = "warn"
too_many_arguments = "allow"
too_many_lines = "allow"
transmute_ptr_to_ptr = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
unchecked_time_subtraction = "allow"
unimplemented = "warn"
uninlined_format_args = "allow"
unnecessary_cast = "allow"
unnecessary_debug_formatting = "allow"
unnecessary_lazy_evaluations = "allow"
unnecessary_literal_bound = "allow"
unnecessary_map_or = "allow"
unnecessary_struct_initialization = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unused_async = "allow"
unused_self = "allow"
unwrap_or_default = "allow"
unwrap_used = "allow"
use_self = "allow"
used_underscore_binding = "allow"
useless_asref = "allow"
useless_conversion = "allow"
useless_format = "allow"
useless_let_if_seq = "allow"
useless_vec = "allow"
vec_init_then_push = "allow"
wildcard_imports = "allow"
wildcard_in_or_patterns = "allow"
wrong_self_convention = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "allow"
