[package]
edition = "2024"
rust-version = "1.88.0"
name = "rlg"
version = "0.0.8"
authors = ["RustLogs Contributors"]
build = "build.rs"
include = [
"/CONTRIBUTING.md",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/benches/**",
"/build.rs",
"/Cargo.toml",
"/examples/**",
"/README.md",
"/src/**",
"/tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A Rust library that implements application-level logging with a simple,
readable output format. Features include log rotation, network logging, and support for multiple structured formats like JSON, CEF, and more.
"""
homepage = "https://rustlogs.com/"
documentation = "https://docs.rs/rlg"
readme = "README.md"
keywords = [
"debugging",
"log",
"rlg",
"logging",
"tracing",
]
categories = [
"asynchronous",
"development-tools::debugging",
"development-tools",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sebastienrousseau/rlg/"
[package.metadata.docs.rs]
rustdoc-args = [
"--generate-link-to-definition",
"--cfg",
"docsrs",
"--document-private-items",
]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
[package.metadata.clippy]
warn-lints = [
"clippy::all",
"clippy::pedantic",
"clippy::cargo",
"clippy::nursery",
]
[features]
debug_enabled = []
default = []
miette = ["dep:miette"]
tokio = [
"dep:tokio",
"dep:notify",
]
tracing-layer = ["dep:tracing-subscriber"]
tui = ["dep:terminal_size"]
[lib]
name = "rlg"
crate-type = ["lib"]
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 = "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_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_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.19"
[dependencies.crossbeam-queue]
version = "0.3.12"
[dependencies.dtt]
version = "0.0.9"
[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.17"
[dependencies.log]
version = "0.4.29"
[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.149"
[dependencies.terminal_size]
version = "0.4"
optional = true
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tokio]
version = "1.50.0"
features = ["full"]
optional = true
[dependencies.toml]
version = "1.0.6"
[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.serial_test]
version = "3"
[dev-dependencies.tempfile]
version = "3.26.0"
[dev-dependencies.tokio]
version = "1.50.0"
features = ["full"]
[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"
[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 = "warn"
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.unused]
level = "deny"
priority = -1
[profile.bench]
debug = 2
[profile.dev]
opt-level = 0
lto = false
codegen-units = 256
debug = 2
debug-assertions = true
rpath = false
panic = "unwind"
overflow-checks = true
incremental = true
strip = false
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
debug-assertions = false
rpath = false
panic = "abort"
overflow-checks = true
incremental = false
strip = "symbols"
[profile.test]
opt-level = 0
lto = false
codegen-units = 256
debug = 2
debug-assertions = true
rpath = false
overflow-checks = true
incremental = true
strip = false