# 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" name = "near-o11y" version = "0.27.0" authors = ["Near Inc "] build = false publish = true autobins = false autoexamples = false autotests = false autobenches = false description = "Observability helpers for the near codebase" readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/near/nearcore" [lib] name = "near_o11y" path = "src/lib.rs" [[bench]] name = "metrics" path = "benches/metrics.rs" harness = false [dependencies.actix] version = "0.13.0" [dependencies.base64] version = "0.21" [dependencies.clap] version = "4.2.0" features = [ "derive", "env", "string", ] [dependencies.near-crypto] version = "0.27.0" default-features = false [dependencies.near-fmt] version = "0.27.0" optional = true [dependencies.near-primitives-core] version = "0.27.0" [dependencies.opentelemetry] version = "0.22.0" features = ["trace"] [dependencies.opentelemetry-otlp] version = "0.15.0" [dependencies.opentelemetry-semantic-conventions] version = "0.14.0" [dependencies.opentelemetry_sdk] version = "0.22.0" features = ["rt-tokio"] [dependencies.prometheus] version = "0.13.1" [dependencies.serde] version = "1.0.136" features = [ "alloc", "derive", "rc", ] [dependencies.serde_json] version = "1.0.68" [dependencies.strum] version = "0.24" features = ["derive"] optional = true [dependencies.thiserror] version = "1.0.30" [dependencies.tokio] version = "1.28" default-features = false [dependencies.tracing] version = "0.1.40" features = ["std"] [dependencies.tracing-appender] version = "0.2.3" [dependencies.tracing-opentelemetry] version = "0.23.0" [dependencies.tracing-subscriber] version = "0.3.18" features = [ "env-filter", "fmt", "registry", "std", ] [dev-dependencies.bencher] version = "0.1.5" [dev-dependencies.itoa] version = "1.0" [dev-dependencies.smartstring] version = "1.0.1" [features] io_trace = [ "near-fmt", "strum", ] nightly = [ "near-fmt/nightly", "near-primitives-core/nightly", "nightly_protocol", ] nightly_protocol = [ "near-fmt/nightly_protocol", "near-primitives-core/nightly_protocol", ] sandbox = [] [lints.clippy] clone_on_copy = "deny" derivable_impls = "deny" len_zero = "deny" or_fun_call = "deny" redundant_clone = "deny" single_char_pattern = "allow" unnecessary_lazy_evaluations = "deny" [lints.clippy.all] level = "allow" priority = -100 [lints.clippy.correctness] level = "deny" priority = -50 [lints.clippy.perf] level = "deny" priority = -50 [lints.clippy.suspicious] level = "deny" priority = -50 [lints.rust.unexpected_cfgs] level = "allow" priority = 0 check-cfg = ["cfg(enable_const_type_id)"]