# 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"
rust-version = "1.88"
name = "mib-rs"
version = "0.7.0"
build = false
exclude = [
    "testdata/corpus/primary/",
    "testdata/fixtures/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SNMP MIB parser and resolver"
documentation = "https://docs.rs/mib-rs"
readme = "README.md"
keywords = [
    "snmp",
    "mib",
    "smi",
    "network",
    "parser",
]
categories = [
    "network-programming",
    "parser-implementations",
]
license = "MIT"
repository = "https://github.com/lukeod/mib-rs"

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

[features]
cli = [
    "dep:clap",
    "dep:tracing-subscriber",
]
default = [
    "serde",
    "cli",
]
serde = [
    "dep:serde",
    "dep:serde_json",
    "smallvec/serde",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.dashmap]
version = "6"

[dependencies.dirs]
version = "6"

[dependencies.petgraph]
version = "0.8"

[dependencies.rayon]
version = "1.11"

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

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

[dependencies.smallvec]
version = "1.15"
features = ["union"]

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["fmt"]
optional = true

[dependencies.walkdir]
version = "2"

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

[dev-dependencies.serde]
version = "1"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1"

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