serial-capture 0.1.0

Cross-platform USB virtual COM port capture (CH340, FT232, FT2232, PL2303, CDC-ACM)
# 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 = "2024"
name = "serial-capture"
version = "0.1.0"
authors = ["Stephen Kingston <stephen.psk@gmail.com>"]
build = "build.rs"
exclude = [
    "tests/",
    ".claude/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform USB virtual COM port capture (CH340, FT232, FT2232, PL2303, CDC-ACM)"
homepage = "https://github.com/stephenkingston/serial-capture"
documentation = "https://docs.rs/serial-capture"
readme = "README.md"
keywords = [
    "usb",
    "serial",
    "capture",
    "ftdi",
    "usbpcap",
]
categories = [
    "command-line-utilities",
    "hardware-support",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/stephenkingston/serial-capture"

[[bin]]
name = "serial-capture"
path = "src/main.rs"

[dependencies.anyhow]
version = "1"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.ctrlc]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = [
    "formatting",
    "macros",
    "local-offset",
]

[target.'cfg(target_os = "linux")'.dependencies.pcap]
version = "2"

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.58"
features = [
    "Win32_Foundation",
    "Win32_Security",
    "Win32_Storage_FileSystem",
    "Win32_System_IO",
    "Win32_System_Registry",
    "Win32_System_Threading",
    "Win32_UI_Shell",
    "Win32_UI_WindowsAndMessaging",
    "Win32_Devices_DeviceAndDriverInstallation",
    "Win32_Devices_Usb",
]

[profile.release]
lto = "thin"
codegen-units = 1
strip = true