ling-net 2030.0.0

Async networking — HTTP, WebSocket, QUIC, and peer-to-peer
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"
name = "ling-net"
version = "2030.0.0"
authors = [
    "Ling Lin <taellinglin@gmail.com>",
    "Sanny Lin <SannyLing53@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async networking — HTTP, WebSocket, QUIC, and peer-to-peer"
readme = false
license = "Apache-2.0 OR MIT"
repository = "https://github.com/taellinglin/ling"

[features]
default = ["http"]
grpc = [
    "dep:tonic",
    "dep:prost",
    "dep:tokio",
]
http = [
    "dep:axum",
    "dep:reqwest",
    "dep:tokio",
]
quic = [
    "dep:quinn",
    "dep:tokio",
]
websocket = [
    "dep:tokio-tungstenite",
    "dep:tokio",
]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.axum]
version = "0.7"
optional = true

[dependencies.ling-core]
version = "2030.0.0"

[dependencies.ling-crypto]
version = "2030.0.0"

[dependencies.prost]
version = "0.12"
optional = true

[dependencies.quinn]
version = "0.11"
optional = true

[dependencies.reqwest]
version = "0.12"
features = ["json"]
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.37"
features = [
    "rt",
    "net",
    "io-util",
    "macros",
]
optional = true

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

[dependencies.tonic]
version = "0.11"
optional = true