nginx-discovery 0.3.0

Discover and introspect NGINX configurations with ease
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 = "2021"
rust-version = "1.70.0"
name = "nginx-discovery"
version = "0.3.0"
authors = ["Ajit Kumar <ajitkumar.pu@gmail.com>"]
build = false
exclude = [
    ".github/",
    "tests/fixtures/large/",
    "*.log",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Discover and introspect NGINX configurations with ease"
homepage = "https://github.com/urwithajit9/nginx-discovery"
documentation = "https://docs.rs/nginx-discovery"
readme = "README.md"
keywords = [
    "nginx",
    "config",
    "parser",
    "discovery",
    "introspection",
]
categories = [
    "config",
    "parsing",
    "web-programming",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/urwithajit9/nginx-discovery"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
cli = [
    "dep:clap",
    "dep:colored",
    "dep:anyhow",
    "dep:dialoguer",
    "dep:tabled",
    "system",
    "serde",
]
default = ["system"]
includes = ["dep:walkdir"]
serde = [
    "dep:serde",
    "dep:serde_json",
    "dep:serde_yaml",
]
system = ["dep:which"]
visitor = []

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

[[bin]]
name = "nginx-discover"
path = "src/bin/nginx-discover.rs"
required-features = ["cli"]

[[example]]
name = "extract_logs"
path = "examples/extract_logs.rs"

[[example]]
name = "extract_servers"
path = "examples/extract_servers.rs"

[[example]]
name = "lex_config"
path = "examples/lex_config.rs"

[[example]]
name = "parse_config"
path = "examples/parse_config.rs"

[[example]]
name = "test_nginx_detection"
path = "examples/test_nginx_detection.rs"

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

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

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

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

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

[[bench]]
name = "parser_bench"
path = "benches/parser_bench.rs"
harness = false

[dependencies.anyhow]
version = "1.0"
optional = true

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "cargo",
]
optional = true

[dependencies.colored]
version = "2.1"
optional = true

[dependencies.dialoguer]
version = "0.11"
optional = true

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.serde_yaml]
version = "0.9"
optional = true

[dependencies.tabled]
version = "0.15"
optional = true

[dependencies.thiserror]
version = "1.0"

[dependencies.walkdir]
version = "2.4"
optional = true

[dependencies.which]
version = "6.0"
optional = true

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.indoc]
version = "2.0"

[dev-dependencies.pretty_assertions]
version = "1.4"

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

[profile.release]
lto = true
codegen-units = 1
strip = true