[package]
name = "serialplugin-core"
version = "0.2.3"
description = "Serial port core of tauri-plugin-serialplugin without Tauri: RX hub, watch streams with native parsers, AT exchange, CMUX, TCP and BLE transports"
edition = "2021"
rust-version = "1.90"
license = "Apache-2.0 OR MIT"
readme = "README.md"
repository = "https://github.com/s00d/tauri-plugin-serialplugin"
homepage = "https://github.com/s00d/tauri-plugin-serialplugin/tree/main/crates/serialplugin-core"
documentation = "https://docs.rs/serialplugin-core"
authors = ["s00d"]
keywords = ["serial", "serialport", "at-commands", "cmux", "modem"]
categories = ["hardware-support", "api-bindings"]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
features = ["ble"]
[features]
ble = ["dep:btleplug", "dep:tokio", "dep:futures", "dep:uuid"]
android-test-harness = ["android-usb-serial/fake-transport"]
tauri = ["dep:tauri"]
log = ["dep:log"]
test-util = []
usb-port-details = ["serialport/usbportinfo-interface", "serialport/usbportinfo-location"]
[dependencies]
tauri = { version = "2", default-features = false, optional = true }
serde = { version = "1.0", features = ["derive"] }
serial-codec = { path = "../serial-codec", version = "0.1.1" }
log = { version = "0.4", features = ["std"], optional = true }
socket2 = { version = "0.6", features = ["all"] }
[target.'cfg(not(target_os = "android"))'.dependencies]
btleplug = { version = "0.13", optional = true }
tokio = { version = "1", features = ["rt-multi-thread", "time", "macros"], optional = true }
futures = { version = "0.3", optional = true }
uuid = { version = "1", optional = true }
[target.'cfg(windows)'.dependencies]
winreg = "0.56"
[target.'cfg(target_os = "android")'.dependencies]
jni = "0.21"
serde_json = "1.0"
android-usb-serial = { path = "../android-usb-serial", version = "0.1.6" }
serialport = "4.10.1"
log = { version = "0.4", features = ["std"] }
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
serialport = "4.10.1"
[dev-dependencies]
proptest = "1.10"
serde_json = "1.0"