android-usb-serial 0.1.0

Pure Rust USB serial drivers for Android (and Linux), built on nusb
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 = "2021"
rust-version = "1.79"
name = "android-usb-serial"
version = "0.1.0"
authors = ["s00d"]
build = false
exclude = [
    "/target/",
    "Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust USB serial drivers for Android (and Linux), built on nusb"
homepage = "https://github.com/s00d/tauri-plugin-serialplugin/tree/master/crates/android-usb-serial"
documentation = "https://docs.rs/android-usb-serial"
readme = "README.md"
keywords = [
    "usb",
    "serial",
    "android",
    "nusb",
    "serialport",
]
categories = [
    "hardware-support",
    "os::android-apis",
    "embedded",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/s00d/tauri-plugin-serialplugin"

[package.metadata.docs.rs]
all-features = false
features = [
    "serialport-compat",
    "fake-transport",
]
targets = [
    "x86_64-unknown-linux-gnu",
    "x86_64-linux-android",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["serialport-compat"]
fake-transport = [
    "dep:serde",
    "dep:serde_json",
    "dep:base64",
]
serialport-compat = ["dep:serialport"]

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

[[bin]]
name = "golden_record"
path = "src/bin/golden_record.rs"
required-features = ["fake-transport"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.serialport]
version = "4.9"
optional = true

[dev-dependencies.base64]
version = "0.22"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1.0"

[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies.libc]
version = "0.2"

[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies.nusb]
version = "0.2"