[package]
name = "dtn7-plus"
version = "0.3.0"
authors = ["Lars Baumgaertner <baumgaertner@cs.tu-darmstadt.de>"]
description = "Additional helpers for rust dtn daemon"
edition = "2018"
license = "MIT OR Apache-2.0"
categories = ["network-programming"]
repository    = "https://github.com/dtn7/dtn7-plus-rs"
keywords = ["peer2peer", "dtn"]
exclude = [".vscode/", ".travis.yml"]
readme = "README.md"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bp7 = "0.6.6"
serde = { version = "1.0.123", features = ["derive"] }
serde_json = "1.0.62"
attohttpc = { version = "0.16.1", default-features = false, optional = true }
serde_cbor = { version = "0.11.1", optional = true }
smaz = { version = "0.1.0", optional = true }
thiserror = "1.0.23"
derive-try-from-primitive = { version = "1.0.0", optional = true }
serde_bytes = { version = "0.11.5", optional = true }
bitflags = { version = "1.2.1", optional = true }
clap = { version = "2.33.3", optional = true }
humantime = { version = "2.1.0", optional = true }
ws = { version = "0.9.1", optional = true }
anyhow = { version = "1.0.38", optional = true }
url = { version = "2.2.0", optional = true }
tungstenite = { version = "0.13.0", optional = true }


[features]
client = ["attohttpc", "serde_bytes", "tungstenite"]
sms = ["serde_cbor", "smaz", "serde_bytes"]
default = ["sms", "client", "location", "cli"]
location = ["derive-try-from-primitive", "serde_cbor", "bitflags"]
cli = ["clap", "humantime", "ws", "anyhow", "url"]

[[bin]]
name = "dtngpslogger"
required-features = ["location", "cli"]

[[bin]]
name = "dtngpsreceiver"
required-features = ["location", "cli"]
