mx-logging 0.1.0

Tracing and OpenTelemetry logging utilities for MultiversX Rust services.
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 = "mx-logging"
version = "0.1.0"
build = false
include = [
    "Cargo.toml",
    "README.md",
    "src/**/*.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tracing and OpenTelemetry logging utilities for MultiversX Rust services."
documentation = "https://docs.rs/mx-logging"
readme = "README.md"
keywords = [
    "multiversx",
    "logging",
    "tracing",
    "opentelemetry",
    "observability",
]
categories = ["development-tools::debugging"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/multiversx/mx-chain-rust"
resolver = "2"

[features]
default = []
opentelemetry = [
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
    "dep:opentelemetry-otlp",
    "dep:opentelemetry-semantic-conventions",
    "dep:tracing-opentelemetry",
    "dep:tokio",
]

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

[dependencies.opentelemetry]
version = "0.27.1"
features = ["trace"]
optional = true
default-features = false

[dependencies.opentelemetry-otlp]
version = "0.27.0"
features = [
    "trace",
    "grpc-tonic",
]
optional = true
default-features = false

[dependencies.opentelemetry-semantic-conventions]
version = "0.27.0"
optional = true

[dependencies.opentelemetry_sdk]
version = "0.27.1"
features = [
    "trace",
    "rt-tokio",
]
optional = true
default-features = false

[dependencies.tokio]
version = "1.50.0"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
    "signal",
]
optional = true

[dependencies.tracing]
version = "0.1.40"

[dependencies.tracing-opentelemetry]
version = "0.28.0"
optional = true

[dependencies.tracing-subscriber]
version = "0.3.23"
features = [
    "fmt",
    "env-filter",
    "tracing-log",
]

[dev-dependencies.serial_test]
version = "3.2"

[lints.clippy]
cargo_common_metadata = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
checked_conversions = "allow"
clone_on_ref_ptr = "allow"
cloned_instead_of_copied = "allow"
collection_is_never_read = "allow"
const_is_empty = "allow"
create_dir = "allow"
dbg_macro = "allow"
default_trait_access = "allow"
doc_markdown = "allow"
enum_glob_use = "allow"
exit = "allow"
expect_used = "allow"
float_cmp_const = "allow"
fn_params_excessive_bools = "allow"
if_not_else = "allow"
implicit_clone = "allow"
inline_always = "allow"
items_after_statements = "allow"
iter_on_empty_collections = "allow"
large_types_passed_by_value = "allow"
manual_let_else = "allow"
match_bool = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
mem_forget = "allow"
missing_assert_message = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_inline_in_public_items = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
mut_mut = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
option_option = "allow"
panic = "allow"
print_stderr = "allow"
print_stdout = "allow"
rc_mutex = "allow"
redundant_clone = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
redundant_pub_crate = "allow"
rest_pat_in_fully_bound_structs = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_match_else = "allow"
str_to_string = "allow"
string_lit_as_bytes = "allow"
string_to_string = "allow"
struct_excessive_bools = "allow"
todo = "allow"
too_many_arguments = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
undocumented_unsafe_blocks = "allow"
unimplemented = "allow"
uninlined_format_args = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unwrap_used = "allow"
use_self = "allow"
useless_let_if_seq = "allow"
verbose_file_reads = "allow"
wildcard_imports = "allow"

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.complexity]
level = "deny"
priority = -1

[lints.clippy.correctness]
level = "deny"
priority = -1

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.clippy.style]
level = "deny"
priority = -1

[lints.clippy.suspicious]
level = "deny"
priority = -1

[lints.rust]
missing_docs = "allow"
unreachable_pub = "allow"
unsafe_code = "allow"
unsafe_op_in_unsafe_fn = "deny"
unused_qualifications = "allow"