[package]
name = "plctag-core"
version = "0.1.0"
edition = "2018"
description = "a rust wrapper of [libplctag](https://github.com/libplctag/libplctag), with rust style APIs and useful extensions"
readme = "README.md"
license = "MIT"
homepage = "https://github.com/Joylei/plctag-rs"
repository = "https://github.com/Joylei/plctag-rs.git"
documentation = "https://docs.rs/crate/plctag/"
keywords = ["automation", "plc", "ethernet","modbus", "hardware"]
categories = ["api-bindings","hardware-support"]
authors = ["joylei <leingliu@gmail.com>"]

[dependencies]
plctag-sys = { path = "../sys", version = "0.1" }

log = "0.4"
parking_lot = { version = "0.11", optional = true }
paste = { version = "1", optional = true }
once_cell = { version = "1", optional = true }
dyn-clone = { version = "1", optional = true }

[features]
default = ["value", "event", "api_string", "api_raw_bytes"]
value = ["paste"]
event = ["parking_lot", "once_cell", "dyn-clone"]
# version 2.2+: string api
api_string = []
# version 2.3+: raw bytes api
api_raw_bytes = []
