bloop-protocol 1.0.0

Core implementation of the Bloop wire protocol
# Note: `version` is a literal (not workspace-inherited) and the derive
# dependency is declared inline, because semantic-release-cargo stamps
# release versions into member manifests only; it does not rewrite the root
# workspace tables.

[package]
name = "bloop-protocol"
description = "Core implementation of the Bloop wire protocol"
version = "1.0.0"
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
readme.workspace = true

[features]
## Hex parsing (`FromHex`) for NFC UIDs and data hashes.
hex = ["dep:hex"]

## Conversion from `md5::Digest` into `DataHash`.
md5 = ["dep:md5"]

## Serde support, representing NFC UIDs and data hashes as hex strings.
serde = ["dep:serde", "hex"]

[dependencies]
bloop-protocol-derive = { path = "../bloop-protocol-derive", version = "1.0.0" }
bitmask-enum = "2.2"
thiserror = "2.0"
tokio = { version = "1.48", default-features = false, features = ["io-util"] }
uuid = "1.19"

hex = { version = "0.4.3", optional = true }
md5 = { version = "0.8.0", optional = true }
serde = { version = "1.0", optional = true }

[dev-dependencies]
serde_json = "1.0"
tokio = { version = "1.48", features = ["io-util", "macros", "rt"] }
trybuild = "1.0"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(docsrs)"] }

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