# 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 = "2018"
name = "sbp"
version = "4.7.0"
authors = ["Swift Navigation <dev@swiftnav.com>"]
description = "Rust native implementation of SBP (Swift Binary Protocol) for communicating with devices made by Swift Navigation"
readme = "README.md"
keywords = [
    "encoding",
    "parsing",
]
categories = ["parsing"]
license = "MIT"
repository = "https://github.com/swift-nav/libsbp"

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

[dependencies.base64]
version = "0.13"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.crc16]
version = "0.4"

[dependencies.dencode]
version = "0.3"
default-features = false

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.log]
version = "0.4"

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

[dependencies.serde-big-array]
version = "0.4"
optional = true

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

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

[dependencies.swiftnav]
version = "0.8"
optional = true

[dev-dependencies.serialport]
version = "2.1.0"

[features]
async = [
    "futures",
    "dencode/async",
]
default = []
float_roundtrip = [
    "serde",
    "serde_json/float_roundtrip",
]
json = [
    "serde",
    "serde_json",
    "base64",
]
link = ["slotmap"]
serde = [
    "dep:serde",
    "serde-big-array",
]
