# 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"
rust-version = "1.85"
name = "plc-comm-hostlink-rust"
version = "0.1.1"
build = false
include = [
    "Cargo.toml",
    "CHANGELOG.md",
    "README.md",
    "docs/**",
    "src/**",
    "examples/**",
    "tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async Rust Host Link client based on plc-comm-hostlink-dotnet"
homepage = "https://github.com/fa-yoshinobu/plc-comm-hostlink-rust"
documentation = "https://docs.rs/plc-comm-hostlink-rust"
readme = "README.md"
keywords = [
    "plc",
    "keyence",
    "hostlink",
    "async",
    "tokio",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/fa-yoshinobu/plc-comm-hostlink-rust"

[features]
cli = [
    "dep:futures-util",
    "dep:serde_json",
    "tokio/macros",
    "tokio/rt-multi-thread",
]
default = []

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

[[bin]]
name = "hostlink_verify_client"
path = "src/bin/hostlink_verify_client.rs"
required-features = ["cli"]

[[example]]
name = "basic_high_level"
path = "examples/basic_high_level.rs"
required-features = ["cli"]

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

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

[dependencies.async-stream]
version = "0.3"

[dependencies.encoding_rs]
version = "0.8"

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

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

[dependencies.indexmap]
version = "2"

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

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio]
version = "1"
features = [
    "io-util",
    "net",
    "rt",
    "sync",
    "time",
]
default-features = false

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

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "io-util",
    "macros",
    "net",
    "rt-multi-thread",
    "sync",
    "time",
]
default-features = false
