workflow-rpc 0.19.0

Workflow RPC (wRPC) framework based on the workflow-websocket crate offering native & in-browser (WASM32) clients and a native server (based on tokio & tungstenite). wRPC supports custom Borsh and JSON protocols with use of generics for RPC method declarations.
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 = "2024"
name = "workflow-rpc"
version = "0.19.0"
authors = ["WORKFLOW-RS developers"]
build = false
exclude = [
    "/.*",
    "/test",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Workflow RPC (wRPC) framework based on the workflow-websocket 
crate offering native & in-browser (WASM32) clients and a 
native server (based on tokio & tungstenite). wRPC
supports custom Borsh and JSON protocols with use of
generics for RPC method declarations.
"""
readme = "README.md"
keywords = [
    "websocket",
    "rpc",
    "wasm",
    "browser",
]
categories = [
    "web-programming::websocket",
    "web-programming::http-client",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/workflow-rs/workflow-rs"
resolver = "2"

[features]
default = ["native-tls"]
native-tls = ["workflow-websocket/native-tls"]
native-tls-vendored = ["workflow-websocket/native-tls-vendored"]
rustls-tls-native-roots = ["workflow-websocket/rustls-tls-native-roots"]
rustls-tls-webpki-roots = ["workflow-websocket/rustls-tls-webpki-roots"]
wasm32-sdk = ["workflow-websocket/wasm32-sdk"]

[lib]
name = "workflow_rpc"
crate-type = [
    "cdylib",
    "lib",
]
path = "src/lib.rs"
doctest = false

[dependencies.ahash]
version = "0.8.6"

[dependencies.async-trait]
version = "0.1.74"

[dependencies.borsh]
version = "1.7"
features = [
    "derive",
    "rc",
]

[dependencies.downcast-rs]
version = "1.2.0"

[dependencies.futures]
version = "0.3.31"

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

[dependencies.manual_future]
version = "0.1.1"

[dependencies.rand]
version = "0.10"

[dependencies.serde]
version = "1.0.190"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1.0.108"

[dependencies.thiserror]
version = "2.0.11"

[dependencies.wasm-bindgen]
version = "0.2.100"

[dependencies.workflow-core]
version = "0.19.0"
default-features = false

[dependencies.workflow-log]
version = "0.19.0"
default-features = false

[dependencies.workflow-rpc-macros]
version = "0.19.0"
default-features = false

[dependencies.workflow-task]
version = "0.19.0"
default-features = false

[dependencies.workflow-wasm]
version = "0.19.0"
default-features = false

[dependencies.workflow-websocket]
version = "0.19.0"
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.futures-util]
version = "0.3.29"
features = [
    "sink",
    "std",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.33.0"
features = [
    "io-util",
    "time",
    "sync",
    "macros",
    "rt",
    "rt-multi-thread",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tungstenite]
version = "0.29.0"
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.4"
features = ["wasm_js"]

[lints.clippy]
multiple_bound_locations = "allow"