[package]
edition = "2024"
rust-version = "1.88.0"
name = "rlg"
version = "0.0.11"
authors = ["Sebastien Rousseau <sebastian.rousseau@gmail.com>"]
build = "build.rs"
include = [
"/benches/**",
"/build.rs",
"/Cargo.toml",
"/examples/**",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/README.md",
"/src/**",
"/tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A near-lock-free structured logging library for Rust. Sub-microsecond
ingestion via a 65k-slot ring buffer (LMAX Disruptor pattern), deferred
formatting, and native OS sinks (`os_log` on macOS via `syslog(3)`,
`journald` on Linux). 14 output formats including JSON, MCP, OTLP,
ECS, GELF, CEF, and Logfmt.
"""
homepage = "https://rustlogs.com/"
documentation = "https://docs.rs/rlg"
readme = "README.md"
keywords = [
"debugging",
"log",
"rlg",
"logging",
"tracing",
]
categories = [
"asynchronous",
"development-tools",
"development-tools::debugging",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sebastienrousseau/rlg"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--generate-link-to-definition",
"--cfg",
"docsrs",
"--document-private-items",
]
targets = ["x86_64-unknown-linux-gnu"]
[package.metadata.clippy]
warn-lints = [
"clippy::all",
"clippy::pedantic",
"clippy::cargo",
"clippy::nursery",
]
[features]
debug_enabled = []
default = []
fast-queue = []
miette = ["dep:miette"]
tokio = [
"dep:tokio",
"dep:notify",
]
tracing-layer = ["dep:tracing-subscriber"]
tui = ["dep:terminal_size"]
uring = ["dep:io-uring"]
[lib]
name = "rlg"
path = "src/lib.rs"
[[example]]
name = "example"
path = "examples/example.rs"
[[example]]
name = "example_config"
path = "examples/example_config.rs"
required-features = ["tokio"]
[[example]]
name = "example_lib"
path = "examples/example_lib.rs"
[[example]]
name = "example_log_format"
path = "examples/example_log_format.rs"
[[example]]
name = "example_log_level"
path = "examples/example_log_level.rs"
[[example]]
name = "example_macros"
path = "examples/example_macros.rs"
[[example]]
name = "example_utils"
path = "examples/example_utils.rs"
required-features = ["tokio"]
[[test]]
name = "loom_engine"
path = "tests/loom_engine.rs"
[[test]]
name = "proptest_round_trip"
path = "tests/proptest_round_trip.rs"
[[test]]
name = "test_config"
path = "tests/test_config.rs"
[[test]]
name = "test_config_comprehensive"
path = "tests/test_config_comprehensive.rs"
[[test]]
name = "test_config_coverage"
path = "tests/test_config_coverage.rs"
[[test]]
name = "test_config_errors"
path = "tests/test_config_errors.rs"
[[test]]
name = "test_coverage_final"
path = "tests/test_coverage_final.rs"
[[test]]
name = "test_coverage_gaps"
path = "tests/test_coverage_gaps.rs"
[[test]]
name = "test_coverage_v007"
path = "tests/test_coverage_v007.rs"
[[test]]
name = "test_edge_cases"
path = "tests/test_edge_cases.rs"
[[test]]
name = "test_engine_high_perf"
path = "tests/test_engine_high_perf.rs"
[[test]]
name = "test_fluent_api"
path = "tests/test_fluent_api.rs"
[[test]]
name = "test_init_lifecycle"
path = "tests/test_init_lifecycle.rs"
[[test]]
name = "test_lib"
path = "tests/test_lib.rs"
[[test]]
name = "test_log_comprehensive"
path = "tests/test_log_comprehensive.rs"
[[test]]
name = "test_log_errors"
path = "tests/test_log_errors.rs"
[[test]]
name = "test_log_format"
path = "tests/test_log_format.rs"
[[test]]
name = "test_log_io_errors"
path = "tests/test_log_io_errors.rs"
[[test]]
name = "test_log_level"
path = "tests/test_log_level.rs"
[[test]]
name = "test_log_rotation"
path = "tests/test_log_rotation.rs"
[[test]]
name = "test_macros"
path = "tests/test_macros.rs"
[[test]]
name = "test_new_modules"
path = "tests/test_new_modules.rs"
[[test]]
name = "test_tracing"
path = "tests/test_tracing.rs"
[[test]]
name = "test_tui_and_sinks"
path = "tests/test_tui_and_sinks.rs"
[[test]]
name = "test_utils"
path = "tests/test_utils.rs"
[[bench]]
name = "benchmark"
path = "benches/bench.rs"
harness = false
[[bench]]
name = "competitive_bench"
path = "benches/competitive_bench.rs"
harness = false
[[bench]]
name = "config_bench"
path = "benches/config_bench.rs"
harness = false
[[bench]]
name = "log_bench"
path = "benches/log_bench.rs"
harness = false
[dependencies.config]
version = "0.15.22"
[dependencies.crossbeam-queue]
version = "0.3.12"
[dependencies.envy]
version = "0.4.2"
[dependencies.euxis-commons]
version = "0.0.2"
features = [
"error",
"config",
"validation",
"retry",
"id",
"time",
"env",
]
default-features = false
package = "euxis-commons"
[dependencies.hostname]
version = "0.4.2"
[dependencies.itoa]
version = "1.0.18"
[dependencies.log]
version = "0.4.30"
[dependencies.miette]
version = "7.5.0"
features = ["fancy"]
optional = true
[dependencies.notify]
version = "8.2.0"
optional = true
[dependencies.parking_lot]
version = "0.12.5"
[dependencies.regex]
version = "1.12.3"
[dependencies.ryu]
version = "1.0.23"
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.150"
[dependencies.terminal_size]
version = "0.4"
optional = true
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tokio]
version = "1.52.3"
features = [
"fs",
"io-util",
"macros",
"rt-multi-thread",
"sync",
"time",
]
optional = true
default-features = false
[dependencies.toml]
version = "1.0.7"
[dependencies.tracing-core]
version = "0.1.36"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["registry"]
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.8.2"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.tempfile]
version = "3.27.0"
[dev-dependencies.tokio]
version = "1.52.3"
features = [
"fs",
"io-util",
"macros",
"rt-multi-thread",
"sync",
"time",
]
default-features = false
[dev-dependencies.tokio-test]
version = "0.4.5"
[dev-dependencies.tracing]
version = "0.1.41"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["fmt"]
[build-dependencies.version_check]
version = "0.9.5"
[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"
[target.'cfg(target_os = "linux")'.dependencies.io-uring]
version = "0.7"
optional = true
[lints.rust]
bare_trait_objects = "allow"
dead_code = "deny"
deprecated_in_future = "deny"
elided_lifetimes_in_paths = "allow"
ellipsis_inclusive_range_patterns = "deny"
explicit_outlives_requirements = "deny"
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_copy_implementations = "warn"
missing_debug_implementations = "forbid"
missing_docs = "deny"
non_ascii_idents = "forbid"
non_camel_case_types = "allow"
non_upper_case_globals = "allow"
noop_method_call = "deny"
single_use_lifetimes = "deny"
trivial_bounds = "allow"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unreachable_pub = "forbid"
unsafe_code = "deny"
unstable_features = "warn"
unused_extern_crates = "warn"
unused_features = "deny"
unused_import_braces = "deny"
unused_labels = "deny"
unused_lifetimes = "deny"
unused_macro_rules = "deny"
unused_qualifications = "deny"
variant_size_differences = "deny"
[lints.rust.future_incompatible]
level = "deny"
priority = -1
[lints.rust.keyword_idents]
level = "deny"
priority = -1
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rust.rust_2021_compatibility]
level = "deny"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(loom)",
"cfg(docsrs)",
"cfg(kani)",
]
[lints.rust.unused]
level = "deny"
priority = -1