net_backend_client 0.2.0

A Rust client for net_backend_server: typed HTTP calls with automatic token refresh, a reconnecting WebSocket, SSH / SFTP to the server machine, async (tokio) or blocking.
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.95"
name = "net_backend_client"
version = "0.2.0"
build = false
exclude = [
    "NOTES.md",
    "docs/",
    "/target",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust client for net_backend_server: typed HTTP calls with automatic token refresh, a reconnecting WebSocket, SSH / SFTP to the server machine, async (tokio) or blocking."
homepage = "https://net-backend.com"
readme = "README.md"
keywords = [
    "gamedev",
    "client",
    "backend",
    "websocket",
    "ssh",
]
categories = [
    "game-development",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/warmar94/net_backend"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
http2 = [
    "hyper/http2",
    "hyper-util/http2",
    "hyper-rustls/http2",
]
oauth = [
    "dep:base64",
    "tokio/io-util",
]
os-certificates = ["dep:rustls-platform-verifier"]
sftp = [
    "ssh",
    "dep:russh-sftp",
]
ssh = [
    "dep:russh",
    "dep:ssh2-config",
    "dep:glob",
    "dep:hmac",
    "dep:sha1",
    "tokio/macros",
]
ssh-rsa = [
    "ssh",
    "russh/rsa",
]
ws = [
    "dep:tokio-tungstenite",
    "dep:tokio-rustls",
    "dep:futures-util",
    "tokio/macros",
    "tokio/io-util",
]

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

[[example]]
name = "admin_ssh"
path = "examples/admin_ssh.rs"
required-features = ["sftp"]

[[example]]
name = "blocking_loop"
path = "examples/blocking_loop.rs"

[[example]]
name = "chat"
path = "examples/chat.rs"
required-features = ["ws"]

[[example]]
name = "quickstart"
path = "examples/quickstart.rs"

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

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

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

[[test]]
name = "oauth"
path = "tests/oauth.rs"
required-features = ["oauth"]

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

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

[[test]]
name = "ssh"
path = "tests/ssh.rs"
required-features = ["ssh"]

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

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

[[test]]
name = "ws"
path = "tests/ws.rs"
required-features = ["ws"]

[dependencies.base64]
version = "0.22.1"
features = ["alloc"]
optional = true
default-features = false

[dependencies.bytes]
version = "1.10"

[dependencies.futures-util]
version = "0.3.31"
features = [
    "std",
    "sink",
]
optional = true
default-features = false

[dependencies.glob]
version = "0.3"
optional = true

[dependencies.hmac]
version = "0.13"
optional = true

[dependencies.http]
version = "1.3"

[dependencies.http-body-util]
version = "0.1.3"

[dependencies.hyper]
version = "1.6"
features = [
    "client",
    "http1",
]
default-features = false

[dependencies.hyper-rustls]
version = "0.27.10"
features = [
    "http1",
    "ring",
    "tls12",
]
default-features = false

[dependencies.hyper-util]
version = "0.1.21"
features = [
    "client-legacy",
    "client-proxy",
    "http1",
    "tokio",
]
default-features = false

[dependencies.net_backend_protocol]
version = "0.2.0"

[dependencies.ring]
version = "0.17.14"

[dependencies.russh]
version = "=0.63.3"
features = ["ring"]
optional = true
default-features = false

[dependencies.russh-sftp]
version = "=3.0.1"
optional = true

[dependencies.rustls]
version = "0.23.31"
features = [
    "ring",
    "std",
    "tls12",
]
default-features = false

[dependencies.rustls-platform-verifier]
version = "0.7.1"
optional = true

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

[dependencies.serde_json]
version = "1.0.140"

[dependencies.sha1]
version = "0.11"
optional = true
default-features = false

[dependencies.ssh2-config]
version = "=0.8.1"
optional = true

[dependencies.tokio]
version = "1.47"
features = [
    "rt",
    "net",
    "time",
    "sync",
    "fs",
    "io-util",
    "macros",
]
default-features = false

[dependencies.tokio-rustls]
version = "0.26.2"
features = [
    "ring",
    "tls12",
]
optional = true
default-features = false

[dependencies.tokio-tungstenite]
version = "0.29.0"
features = ["handshake"]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1.41"
features = ["std"]
default-features = false

[dependencies.webpki-roots]
version = "1.0"

[dependencies.zeroize]
version = "1.7"
features = ["alloc"]
default-features = false

[dev-dependencies.base64]
version = "0.22.1"

[dev-dependencies.getrandom]
version = "0.4"
features = ["sys_rng"]

[dev-dependencies.hyper]
version = "1.6"
features = [
    "server",
    "http1",
    "http2",
]

[dev-dependencies.hyper-util]
version = "0.1.21"
features = ["tokio"]

[dev-dependencies.log]
version = "0.4"
features = ["std"]

[dev-dependencies.rcgen]
version = "=0.14.10"
features = [
    "ring",
    "pem",
]
default-features = false

[dev-dependencies.ring]
version = "0.17.14"

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

[dev-dependencies.tokio-rustls]
version = "0.26.2"
features = [
    "ring",
    "tls12",
]
default-features = false