# 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.88.0"
name = "soe-protocol"
version = "1.0.2"
authors = ["yungcomputerchair <me@ycc.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sony Online Entertainment protocol implementation in Rust."
readme = "README.md"
license = "MIT"
repository = "https://github.com/yungcomputerchair/soe-protocol"

[package.metadata.docs.rs]
all-features = true

[features]
tokio = ["dep:tokio"]

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

[[example]]
name = "client-sync"
path = "examples/client-sync.rs"

[[example]]
name = "client-tokio"
path = "examples/client-tokio.rs"
required-features = ["tokio"]

[[example]]
name = "server-actor"
path = "examples/server-actor.rs"
required-features = ["tokio"]

[[example]]
name = "server-sync"
path = "examples/server-sync.rs"

[[example]]
name = "server-tokio"
path = "examples/server-tokio.rs"
required-features = ["tokio"]

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

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

[dependencies.bytes]
version = "1.11.1"

[dependencies.flate2]
version = "1.1.9"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "net",
    "rt",
    "sync",
    "time",
]
optional = true

[dev-dependencies.tokio]
version = "1"
features = [
    "net",
    "rt",
    "rt-multi-thread",
    "time",
    "macros",
]
