# 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"
name = "sockets"
version = "0.1.1"
description = "This is a general socket library for easy network communications with Rust"
homepage = "https://github.com/tr3ysmith/sockets"
readme = "README.md"
keywords = [
    "tcp",
    "udp",
    "sockets",
    "networking",
    "async",
]
categories = ["network-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tr3ysmith/sockets"

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

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

[dependencies.socket2]
version = "0.4.7"

[dependencies.thiserror]
version = "1.0.38"

[dependencies.tokio]
version = "1.24.2"
features = [
    "net",
    "time",
    "sync",
    "rt",
    "macros",
]

[dependencies.tracing]
version = "0.1.37"

[features]
default = ["json"]
json = [
    "dep:serde_json",
    "serde",
]
serde = ["dep:serde"]
