# 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 = "ostool-server"
version = "0.4.2"
authors = ["周睿 <zrufo747@outlook.com>"]
build = "build.rs"
exclude = [
    "webui/node_modules/*",
    "webui/dist/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Server for managing development boards, serial sessions, and TFTP artifacts"
readme = "README.md"
keywords = [
    "embedded",
    "u-boot",
    "tftp",
    "serial",
    "server",
]
categories = [
    "command-line-utilities",
    "embedded",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/drivercraft/ostool"

[package.metadata.binstall]
bin-dir = "{ name }-{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
pkg-url = "{ repo }/releases/download/{ name }-v{ version }/{ name }-{ version }-{ target }.{ archive-format }"

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

[[bin]]
name = "ostool-server"
path = "src/main.rs"

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

[dependencies.anyhow]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
version = "0.8"
features = ["ws"]

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4.44"
features = ["serde"]

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

[dependencies.env_logger]
version = "0.11"

[dependencies.futures-util]
version = "0.3"

[dependencies.httpboot-protocol]
version = "0.1"

[dependencies.log]
version = "0.4"

[dependencies.mime_guess]
version = "2"

[dependencies.network-interface]
version = "2"

[dependencies.nusb]
version = "0.2.3"

[dependencies.rust-embed]
version = "8"
features = [
    "interpolate-folder-path",
    "debug-embed",
]

[dependencies.schemars]
version = "1.0.4"
features = [
    "derive",
    "derive",
]

[dependencies.serde]
version = "1"
features = [
    "derive",
    "derive",
]

[dependencies.serde_json]
version = "1"

[dependencies.serialport]
version = "4.6"

[dependencies.sha2]
version = "0.10"

[dependencies.tftpd]
version = "0.5"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "full",
    "full",
]

[dependencies.tokio-modbus]
version = "0.17.0"
features = ["rtu"]
default-features = false

[dependencies.tokio-serial]
version = "5.4"

[dependencies.toml]
version = "1.0"

[dependencies.tower-http]
version = "0.6"
features = ["fs"]

[dependencies.uuid]
version = "1"
features = [
    "serde",
    "v4",
]

[dev-dependencies.reqwest]
version = "0.13"
features = ["json"]

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio-modbus]
version = "0.17.0"
features = [
    "rtu",
    "rtu-server",
]
default-features = false

[dev-dependencies.tokio-tungstenite]
version = "0.28"

[dev-dependencies.tower]
version = "0.5"
features = ["util"]
