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