rs-netty 0.2.2

A Tokio-native typed TCP/UDP pipeline framework inspired by Netty.
Documentation
# 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 = "2021"
rust-version = "1.75"
name = "rs-netty"
version = "0.2.2"
build = false
exclude = [
    ".idea/",
    "Cargo.toml.orig",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Tokio-native typed TCP/UDP pipeline framework inspired by Netty."
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/PieceOfFall/rs-netty"

[features]
default = ["macros"]
json = [
    "dep:serde",
    "dep:sonic-rs",
]
macros = ["dep:rs-netty-macros"]
websocket = [
    "dep:base64",
    "dep:sha1",
]

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

[[example]]
name = "tcp_echo_client"
path = "examples/tcp_echo_client.rs"
required-features = ["macros"]

[[example]]
name = "tcp_echo_server"
path = "examples/tcp_echo_server.rs"
required-features = ["macros"]

[[example]]
name = "tcp_json_line_echo"
path = "examples/tcp_json_line_echo.rs"
required-features = [
    "json",
    "macros",
]

[[example]]
name = "tcp_lifecycle"
path = "examples/tcp_lifecycle.rs"
required-features = ["macros"]

[[example]]
name = "tcp_typed_chain"
path = "examples/tcp_typed_chain.rs"
required-features = ["macros"]

[[example]]
name = "tcp_typed_chain_client"
path = "examples/tcp_typed_chain_client.rs"
required-features = ["macros"]

[[example]]
name = "udp_echo_client"
path = "examples/udp_echo_client.rs"
required-features = ["macros"]

[[example]]
name = "udp_echo_server"
path = "examples/udp_echo_server.rs"
required-features = ["macros"]

[[example]]
name = "udp_typed_chain"
path = "examples/udp_typed_chain.rs"
required-features = ["macros"]

[[example]]
name = "udp_typed_chain_client"
path = "examples/udp_typed_chain_client.rs"
required-features = ["macros"]

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

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

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

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.rs-netty-macros]
version = "0.2.0"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.sha1]
version = "0.10"
optional = true

[dependencies.sonic-rs]
version = "0.5.8"
optional = true

[dependencies.thiserror]
version = "2"

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

[dependencies.tracing]
version = "0.1"

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

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