# 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 = "edgy-s"
version = "1.3.5"
authors = ["SmileSky <mzdk100@foxmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A minimalist WebSocket bidirectional RPC framework for building microservice applications"
readme = "README.md"
keywords = [
    "websocket",
    "rpc",
    "microservice",
    "bidirectional",
    "async",
]
categories = [
    "network-programming",
    "web-programming::websocket",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/mzdk100/edgy-s.git"

[features]
cbor4 = [
    "cbor4ii/use_std",
    "cbor4ii/serde1",
    "serde/derive",
]
client = [
    "futures-util/default",
    "hyper/http1",
    "hyper/client",
    "hyper-util/tokio",
    "hyper-util/client-legacy",
    "hyper-util/http1",
    "hyper-tls",
    "parking_lot/arc_lock",
    "percent-encoding/default",
    "serde/default",
    "tokio/net",
    "tokio/sync",
    "tokio/rt",
    "tokio/rt-multi-thread",
    "tokio/macros",
    "tokio-tungstenite/default",
    "tracing/default",
]
default = [
    "postcard",
    "req_id_u8",
]
postcard = [
    "postcard/alloc",
    "serde/derive",
]
req_id_u16 = []
req_id_u32 = []
req_id_u64 = []
req_id_u8 = []
serde_json = [
    "serde_json/default",
    "serde/derive",
]
server = [
    "futures-util/default",
    "futures-util/async-await-macro",
    "hyper/http1",
    "hyper/server",
    "hyper-util/tokio",
    "parking_lot/arc_lock",
    "percent-encoding/default",
    "serde/default",
    "tokio/net",
    "tokio/sync",
    "tokio/rt",
    "tokio/rt-multi-thread",
    "tokio/macros",
    "tokio-tungstenite/default",
    "tokio-util",
    "tracing/default",
]

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

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

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

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

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

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

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

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

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

[dependencies.cbor4ii]
version = "1.2.2"
optional = true

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

[dependencies.hyper]
version = "1.9.0"
optional = true

[dependencies.hyper-tls]
version = "0.6.0"
optional = true

[dependencies.hyper-util]
version = "0.1.20"
optional = true

[dependencies.parking_lot]
version = "0.12.5"
optional = true

[dependencies.percent-encoding]
version = "2.3.2"
optional = true

[dependencies.postcard]
version = "1.1.3"
optional = true

[dependencies.serde]
version = "1.0.228"
optional = true

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

[dependencies.tokio]
version = "1.51.1"
optional = true

[dependencies.tokio-tungstenite]
version = "0.29.0"
optional = true

[dependencies.tokio-util]
version = "0.7.18"
optional = true

[dependencies.tracing]
version = "0.1.44"
optional = true

[dev-dependencies.anyhow]
version = "1.0.102"

[dev-dependencies.async-stream]
version = "0.3.6"

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

[dev-dependencies.tracing-subscriber]
version = "0.3.23"
