# 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 = "mavrouter"
version = "0.1.0"
authors = ["Fang Luo <luofang@luofang.org>"]
build = false
exclude = [
    "logs/*",
    "*.log",
    "test_config.toml",
    "router.pid",
    ".github/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A MAVLink router written in Rust"
homepage = "https://github.com/luofang34/mavrouter-rs"
documentation = "https://docs.rs/mavrouter"
readme = "README.md"
keywords = [
    "mavlink",
    "router",
    "telemetry",
]
categories = ["network-programming"]
license = "GPL-3.0"
repository = "https://github.com/luofang34/mavrouter-rs"

[features]
benchmarks = []

[[bin]]
name = "mavrouter"
path = "src/main.rs"

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.bytes]
version = "1.0"

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
]

[dependencies.futures]
version = "0.3"

[dependencies.mavlink]
version = "0.12"

[dependencies.parking_lot]
version = "0.12"

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

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.36"
features = ["full"]

[dependencies.tokio-serial]
version = "5.4"

[dependencies.tokio-util]
version = "0.7"
features = [
    "codec",
    "net",
]

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

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

[lints.clippy]
expect_used = "deny"
panic = "deny"
todo = "warn"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "forbid"
