[package]
edition = "2024"
rust-version = "1.85"
name = "repe"
version = "1.1.0"
build = false
include = [
"Cargo.toml",
"README.md",
"LICENSE",
"docs/**",
"src/**",
"examples/**",
"tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust implementation of the REPE RPC protocol (JSON-focused)"
documentation = "https://crates.io/crates/repe"
readme = "README.md"
keywords = [
"rpc",
"protocol",
"repe",
"json",
]
categories = [
"network-programming",
"encoding",
]
license = "MIT"
repository = "https://github.com/repe-org/repe-rs"
[features]
default = []
fleet-udp = ["dep:uniudp"]
parking-lot = ["dep:parking_lot"]
websocket = [
"dep:futures-util",
"dep:tokio-tungstenite",
]
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"
[[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"
[[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 = "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"
[dependencies.beve]
version = "0.1"
[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.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(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