[package]
edition = "2024"
rust-version = "1.85"
name = "repe"
version = "3.2.0"
build = false
include = [
"/Cargo.toml",
"/README.md",
"/LICENSE",
"/docs/**",
"/src/**",
"/examples/**",
"/tests/**",
"/benches/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust implementation of the REPE RPC protocol (JSON-focused)"
documentation = "https://repe-org.github.io/repe-rs/"
readme = "README.md"
keywords = [
"rpc",
"protocol",
"repe",
"json",
]
categories = [
"network-programming",
"encoding",
]
license = "MIT"
repository = "https://github.com/repe-org/repe-rs"
[package.metadata.docs.rs]
all-features = true
[features]
cli = [
"websocket",
"dep:clap",
"dep:clap_complete",
]
default = []
fleet-udp = ["dep:uniudp"]
parking-lot = ["dep:parking_lot"]
websocket = [
"dep:futures-util",
"dep:tokio-tungstenite",
"dep:tokio-util",
]
websocket-wasm = [
"dep:futures-channel",
"dep:futures-util",
"dep:js-sys",
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
"dep:web-sys",
]
[lib]
name = "repe"
path = "src/lib.rs"
[[bin]]
name = "repe"
path = "src/bin/repe.rs"
required-features = ["cli"]
[[example]]
name = "async_client"
path = "examples/async_client.rs"
[[example]]
name = "async_server"
path = "examples/async_server.rs"
[[example]]
name = "client"
path = "examples/client.rs"
[[example]]
name = "json_roundtrip"
path = "examples/json_roundtrip.rs"
[[example]]
name = "registry_roundtrip"
path = "examples/registry_roundtrip.rs"
[[example]]
name = "registry_server"
path = "examples/registry_server.rs"
[[example]]
name = "server"
path = "examples/server.rs"
[[example]]
name = "websocket_cohosting"
path = "examples/websocket_cohosting.rs"
required-features = ["websocket"]
[[example]]
name = "websocket_graceful_server"
path = "examples/websocket_graceful_server.rs"
required-features = ["websocket"]
[[test]]
name = "async_client_format_apis"
path = "tests/async_client_format_apis.rs"
[[test]]
name = "async_client_multiplexing"
path = "tests/async_client_multiplexing.rs"
[[test]]
name = "async_fleet_tests"
path = "tests/async_fleet_tests.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "client_format_apis"
path = "tests/client_format_apis.rs"
[[test]]
name = "client_id_mismatch"
path = "tests/client_id_mismatch.rs"
[[test]]
name = "client_multiplexing"
path = "tests/client_multiplexing.rs"
[[test]]
name = "fleet_tests"
path = "tests/fleet_tests.rs"
[[test]]
name = "json_pointer_tests"
path = "tests/json_pointer_tests.rs"
[[test]]
name = "registry_tests"
path = "tests/registry_tests.rs"
[[test]]
name = "repe_tests"
path = "tests/repe_tests.rs"
[[test]]
name = "struct_registration"
path = "tests/struct_registration.rs"
[[test]]
name = "uniudp_fleet_tests"
path = "tests/uniudp_fleet_tests.rs"
[[bench]]
name = "route_dispatch"
path = "benches/route_dispatch.rs"
harness = false
[[bench]]
name = "wire_serialization"
path = "benches/wire_serialization.rs"
harness = false
[dependencies.beve]
version = "0.1"
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
optional = true
[dependencies.clap_complete]
version = "4"
optional = true
[dependencies.futures-channel]
version = "0.3"
optional = true
[dependencies.futures-util]
version = "0.3"
features = [
"sink",
"std",
]
optional = true
default-features = false
[dependencies.parking_lot]
version = "0.12"
optional = true
[dependencies.repe-derive]
version = "0.1.0"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "1"
[dependencies.uniudp]
version = "1.0.0"
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.rand]
version = "0.8"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"net",
"time",
"io-util",
"sync",
]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite]
version = "0.24"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-util]
version = "0.7"
features = ["rt"]
optional = true
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
"BinaryType",
"CloseEvent",
"ErrorEvent",
"Event",
"MessageEvent",
"Window",
"WebSocket",
]
optional = true