[package]
name = "bacnet-emb"
version = "0.13.30"
edition = "2021"
authors = ["Jack Xiao <xiaopanfeng@uqkj.cn>"]
description = "A bacnet library for embedded systems (no_std)"
license = "MIT OR Apache-2.0"  # 选择适当的许可证
repository = "https://github.com/jackxiao2018/bacnet-emb.git"
keywords = ["iot", "driver"]  # 有助于搜索的分类关键词
categories = ["algorithms", "data-structures"]  # 从 crates.io 分类中选择
readme = "README.md"
resolver = "2"

[dependencies]
log = { version = "0.4.22", default-features = false }
defmt = { version = "0.3.8", optional = true }
serde = { version = "1.0", default-features = false, features = ["derive",], optional = true }
maybe-async = { version = "0.2.10", default-features = false }
bacnet-macros = "0.1.0"

# TODO: add this when it reaches 1.0
# derive_more = { version = "^1.0.0-beta.6", default-features = false, features = [ "try_from"] }

[dev-dependencies]
simple_logger = "5.0.0"
chrono = { version = "0.4.28" }
clap = { version = "4.5.4", features = ["derive"] }
tokio = { version = "1.40.0", features = ["rt-multi-thread", "net", "macros"] }

[features]
default = ["alloc"]
#default = []
defmt = ["dep:defmt"]
serde = ["dep:serde"]
is_sync = ["maybe-async/is_sync"]
alloc = ["serde?/alloc", "defmt?/alloc"]

