osdp 0.3.0

Pure-Rust, no_std-friendly implementation of the SIA Open Supervised Device Protocol (OSDP) v2.2
Documentation
# 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 = "2024"
rust-version = "1.85"
name = "osdp"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust, no_std-friendly implementation of the SIA Open Supervised Device Protocol (OSDP) v2.2"
homepage = "https://github.com/Quantumlyy/osdp-rs/blob/main/README.md"
documentation = "https://docs.rs/osdp"
readme = "README.md"
keywords = [
    "osdp",
    "access-control",
    "rs485",
    "embedded",
    "no-std",
]
categories = [
    "embedded",
    "no-std",
    "network-programming",
    "parser-implementations",
]
license = "BSD-3-Clause"
repository = "https://github.com/Quantumlyy/osdp-rs/"

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

[features]
_docs = ["dep:aquamarine"]
alloc = []
default = [
    "std",
    "secure-channel",
]
defmt = ["dep:defmt"]
embedded-io = ["dep:embedded-io"]
embedded-io-async = ["dep:embedded-io-async"]
secure-channel = [
    "dep:aes",
    "dep:cbc",
    "dep:cipher",
    "dep:subtle",
    "dep:zeroize",
]
std = ["alloc"]

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

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

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

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

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

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

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

[dependencies.aes]
version = "0.8"
optional = true
default-features = false

[dependencies.aquamarine]
version = "0.6"
optional = true

[dependencies.bitflags]
version = "2.6"
default-features = false

[dependencies.cbc]
version = "0.1"
optional = true
default-features = false

[dependencies.cipher]
version = "0.4"
optional = true
default-features = false

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

[dependencies.embedded-io]
version = "0.6"
optional = true

[dependencies.embedded-io-async]
version = "0.6"
optional = true

[dependencies.num_enum]
version = "0.7"
default-features = false

[dependencies.subtle]
version = "2.6"
optional = true
default-features = false

[dependencies.zeroize]
version = "1.8"
features = ["derive"]
optional = true
default-features = false

[dev-dependencies.proptest]
version = "1.5"