# 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 = "meshcore-rs"
version = "0.1.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust library for communicating with MeshCore companion radio nodes"
readme = "README.md"
keywords = [
    "meshcore",
    "lora",
    "mesh",
    "radio",
]
categories = [
    "network-programming",
    "embedded",
    "hardware-support",
]
license = "MIT"
repository = "https://github.com/andrewdavidmackenzie/meshcore-rs"

[features]
ble = ["btleplug"]
default = [
    "serial",
    "tcp",
    "ble",
]
serial = []
tcp = []

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

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

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

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

[dependencies.bytes]
version = "1"

[dependencies.futures]
version = "0.3"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "full",
    "sync",
    "time",
    "io-util",
]

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

[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"

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